1
This commit is contained in:
parent
ea6de7f5f9
commit
384ab17342
@ -15,7 +15,6 @@
|
||||
default-expand-all
|
||||
:props="props"
|
||||
:current-node-key="currentNodeKey"
|
||||
:expand-on-click-node="false"
|
||||
@current-change="handleNodeClick"
|
||||
/>
|
||||
</no-ssr>
|
||||
@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
6
env.js
6
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 非独立部署默认为空
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user