diff --git a/components/aside-tree.vue b/components/aside-tree.vue index 1075b20..d91e8ce 100644 --- a/components/aside-tree.vue +++ b/components/aside-tree.vue @@ -15,7 +15,6 @@ default-expand-all :props="props" :current-node-key="currentNodeKey" - :expand-on-click-node="false" @current-change="handleNodeClick" /> @@ -100,14 +99,16 @@ export default { }, methods: { handleNodeClick(row,node) { - this.$router.push({ - path: `${this.baseUrl}`, - query: { - ...this.$route.query, - catgId: row.id, - title: node.data.label - } - }) + if (node.isLeaf) { + this.$router.push({ + path: `${this.baseUrl}`, + query: { + ...this.$route.query, + catgId: row.id, + title: node.data.label + } + }) + } } } } diff --git a/env.js b/env.js index 1598e44..5aa2381 100644 --- a/env.js +++ b/env.js @@ -6,10 +6,10 @@ module.exports = { VUE_APP_API_URL: '/dev' }, // 开发环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api - dev: { + ev: { MODE: 'dev', - // VUE_APP_API_URL: 'http://127.0.0.1:8099/', - VUE_APP_API_URL: 'https://admin.cdtrucktralier.com/', + VUE_APP_API_URL: 'http://127.0.0.1:8099/', + // VUE_APP_API_URL: 'https://admin.cdtrucktralier.com/', VUE_APP_WEBSOCKET: 'wss://admin.cdtrucktralier.com/ws/asset/' }, // 生产环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api 非独立部署默认为空 diff --git a/plugins/axios.js b/plugins/axios.js index 548597b..c1bd5f2 100644 --- a/plugins/axios.js +++ b/plugins/axios.js @@ -6,7 +6,7 @@ export default function ({redirect, $axios, app}) { config => { config.params = { ...config.params, - tenantId: 'main' + tenantId: 'main', showPlat:"网站" } if (config.method === 'post') { config.data = {