fix(driver-route): refs #6684 manage word overflow with wordBreak #1957

Merged
pablone merged 6 commits from 6684-driverRouteHotfix into master 2024-01-31 13:18:06 +00:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 4ba76291c1 - Show all commits

View File

@ -5,12 +5,11 @@ module.exports = {
mixins: [vnReport],
async serverPrefetch() {
let ids = this.id;
console.log(typeof ids);
const hasMultipleRoutes = String(this.id).includes(',');
if (hasMultipleRoutes)
ids = this.id.split(',');
const routes = await this.rawSqlFromDef('routes', +[ids]);
const routes = await this.rawSqlFromDef('routes', [ids]);
const tickets = await this.rawSqlFromDef('tickets', [ids, ids]);
const map = new Map();