1
This commit is contained in:
parent
ea6de7f5f9
commit
384ab17342
@ -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,6 +99,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleNodeClick(row,node) {
|
handleNodeClick(row,node) {
|
||||||
|
if (node.isLeaf) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: `${this.baseUrl}`,
|
path: `${this.baseUrl}`,
|
||||||
query: {
|
query: {
|
||||||
@ -110,6 +110,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
6
env.js
6
env.js
@ -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 非独立部署默认为空
|
||||||
|
|||||||
@ -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 = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user