feat(member): update login url

This commit is contained in:
woody 2025-04-19 11:57:31 +08:00
parent adbbb73251
commit aa1e31d44b
4 changed files with 36 additions and 27 deletions

2
.env Normal file
View File

@ -0,0 +1,2 @@
VUE_APP_CLIENT_ADDRESS = 'http://t-app.beida413.com/#/'
VUE_APP_APP_ADDRESS = 'http://t-app.beida413.com/#/'

View File

@ -1,20 +1,26 @@
<template>
<div :class="{'has-logo':showLogo}">
<logo v-if="showLogo"
:collapse="isCollapse" />
<logo
v-if="showLogo"
:collapse="isCollapse"
/>
<el-scrollbar wrap-class="scrollbar-wrapper">
<el-menu :default-active="activeMenu"
:collapse="isCollapse"
:background-color="variables.menuBg"
:text-color="variables.menuText"
:unique-opened="false"
:active-text-color="variables.menuActiveText"
:collapse-transition="false"
mode="vertical">
<sidebar-item v-for="route in routes"
:key="route.path"
:item="route"
:base-path="route.path" />
<el-menu
:default-active="activeMenu"
:collapse="isCollapse"
:background-color="variables.menuBg"
:text-color="variables.menuText"
:unique-opened="false"
:active-text-color="variables.menuActiveText"
:collapse-transition="false"
mode="vertical"
>
<sidebar-item
v-for="route in routes"
:key="route.path"
:item="route"
:base-path="route.path"
/>
</el-menu>
</el-scrollbar>
</div>
@ -50,11 +56,11 @@ export default {
},
isCollapse() {
return !this.sidebar.opened
},
}
},
data() {
return {
routes: [],
routes: []
}
},
mounted() {
@ -67,6 +73,7 @@ export default {
return new Promise((resolve) => {
getRouters().then((res) => {
this.rolaMenu = this.getName(res.data)
console.log(this.rolaMenu, '....rolaMenu')
resolve(res)
})
})
@ -123,7 +130,7 @@ export default {
}
}
return newArr
},
},
}
}
}
</script>

View File

@ -963,7 +963,7 @@
size="small"
@click="toLogin(scope.row)"
>
{{ '登录' }}
登录
</el-button>
</template>
</el-table-column>
@ -1379,8 +1379,8 @@ export default {
}).then((res) => {
if (res.code == 200) {
const href =
process.env.VUE_APP_ADDRESS1 +
'freeLogin?token=' +
process.env.VUE_APP_CLIENT_ADDRESS +
'?token=' +
res.data.access_token
window.open(href, '_blank')
}
@ -1392,7 +1392,7 @@ export default {
if (res.code == 200) {
const href =
process.env.VUE_APP_ADDRESS +
'freeLogin?token=' +
'?token=' +
res.data.access_token
window.open(href, '_blank')
}

View File

@ -44,11 +44,11 @@ module.exports = {
},
proxy: {
'/prod-api': {
target: 'http://192.168.0.104:8080/',
changeOrigin: true,
pathRewrite: {
'^/prod-api': ''
}
target: 'http://t-mana.beida413.com',
changeOrigin: true
// pathRewrite: {
// '^/prod-api': ''
// }
}
}
// before: require('./mock/mock-server.js')