diff --git a/.env.development b/.env.development index de583d0..e800df6 100644 --- a/.env.development +++ b/.env.development @@ -2,4 +2,4 @@ ENV = 'development' # base api -VUE_APP_BASE_API = '/dev-api' +VUE_APP_BASE_API = '' diff --git a/.env.production b/.env.production index 80c8103..8994f69 100644 --- a/.env.production +++ b/.env.production @@ -2,5 +2,5 @@ ENV = 'production' # base api -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = '' diff --git a/package.json b/package.json index b1a8219..dbeb8ba 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "description": "A vue admin template with Element UI & axios & iconfont & permission control & lint", "author": "Pan ", "scripts": { - "dev": "set CHOKIDAR_USEPOLLING=true && set CHOKIDAR_INTERVAL=1000 && vue-cli-service serve", - "dev:no-watch": "vue-cli-service serve --watch false", + "dev": "vue-cli-service serve", + "dev-no-open": "vue-cli-service serve --open false", "build:prod": "vue-cli-service build", "build:stage": "vue-cli-service build --mode staging", "preview": "node build/index.js --preview", "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", - "lint": "eslint --ext .js,.vue src", + "lint": "vue-cli-service lint", "test:unit": "jest --clearCache && vue-cli-service test:unit", "test:ci": "npm run lint && npm run test:unit" }, diff --git a/src/router/index.js b/src/router/index.js index 2797b69..6d22881 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -120,12 +120,30 @@ export const constantRoutes = [ { path: '/dealership', component: Layout, + redirect: '/dealership/index', + name: 'Dealership', + meta: { + title: '门店管理', + icon: 'el-icon-s-shop' + }, children: [ { path: 'index', - name: 'Dealership', + name: 'DealershipIndex', component: () => import('@/views/dealership/index'), meta: { title: '门店管理', icon: 'el-icon-s-shop' } + }, + { + path: 'brand-analysis', + name: 'BrandAnalysis', + component: () => import('@/views/dealership/brand-analysis'), + meta: { title: '品牌分析', icon: 'el-icon-data-analysis' } + }, + { + path: 'customer-profile', + name: 'CustomerProfile', + component: () => import('@/views/dealership/customer-profile'), + meta: { title: '客户画像', icon: 'el-icon-user-solid' } } ] }, diff --git a/src/views/audio/index.vue b/src/views/audio/index.vue index 4323f47..a7f5077 100644 --- a/src/views/audio/index.vue +++ b/src/views/audio/index.vue @@ -194,24 +194,24 @@
- + 有音频 - - + {{ scope.row.audioFileOriginalName || getAudioFileName(scope.row.audioFileUrl) }} - 下载 @@ -219,26 +219,46 @@
- + 暂无音频文件
+ + +