This commit is contained in:
Vinjor 2025-10-09 16:41:06 +08:00
parent ea6de7f5f9
commit 384ab17342
3 changed files with 14 additions and 13 deletions

View File

@ -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
View File

@ -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 非独立部署默认为空

View File

@ -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 = {