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 default-expand-all
:props="props" :props="props"
:current-node-key="currentNodeKey" :current-node-key="currentNodeKey"
:expand-on-click-node="false"
@current-change="handleNodeClick" @current-change="handleNodeClick"
/> />
</no-ssr> </no-ssr>
@ -100,14 +99,16 @@ export default {
}, },
methods: { methods: {
handleNodeClick(row,node) { handleNodeClick(row,node) {
this.$router.push({ if (node.isLeaf) {
path: `${this.baseUrl}`, this.$router.push({
query: { path: `${this.baseUrl}`,
...this.$route.query, query: {
catgId: row.id, ...this.$route.query,
title: node.data.label catgId: row.id,
} title: node.data.label
}) }
})
}
} }
} }
} }

6
env.js
View File

@ -6,10 +6,10 @@ module.exports = {
VUE_APP_API_URL: '/dev' VUE_APP_API_URL: '/dev'
}, },
// 开发环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api // 开发环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api
dev: { ev: {
MODE: 'dev', MODE: 'dev',
// VUE_APP_API_URL: 'http://127.0.0.1:8099/', VUE_APP_API_URL: 'http://127.0.0.1:8099/',
VUE_APP_API_URL: 'https://admin.cdtrucktralier.com/', // VUE_APP_API_URL: 'https://admin.cdtrucktralier.com/',
VUE_APP_WEBSOCKET: 'wss://admin.cdtrucktralier.com/ws/asset/' VUE_APP_WEBSOCKET: 'wss://admin.cdtrucktralier.com/ws/asset/'
}, },
// 生产环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api 非独立部署默认为空 // 生产环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api 非独立部署默认为空

View File

@ -6,7 +6,7 @@ export default function ({redirect, $axios, app}) {
config => { config => {
config.params = { config.params = {
...config.params, ...config.params,
tenantId: 'main' tenantId: 'main', showPlat:"网站"
} }
if (config.method === 'post') { if (config.method === 'post') {
config.data = { config.data = {