feat(member): update login url
This commit is contained in:
parent
adbbb73251
commit
aa1e31d44b
|
|
@ -0,0 +1,2 @@
|
||||||
|
VUE_APP_CLIENT_ADDRESS = 'http://t-app.beida413.com/#/'
|
||||||
|
VUE_APP_APP_ADDRESS = 'http://t-app.beida413.com/#/'
|
||||||
|
|
@ -1,20 +1,26 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="{'has-logo':showLogo}">
|
<div :class="{'has-logo':showLogo}">
|
||||||
<logo v-if="showLogo"
|
<logo
|
||||||
:collapse="isCollapse" />
|
v-if="showLogo"
|
||||||
|
:collapse="isCollapse"
|
||||||
|
/>
|
||||||
<el-scrollbar wrap-class="scrollbar-wrapper">
|
<el-scrollbar wrap-class="scrollbar-wrapper">
|
||||||
<el-menu :default-active="activeMenu"
|
<el-menu
|
||||||
:collapse="isCollapse"
|
:default-active="activeMenu"
|
||||||
:background-color="variables.menuBg"
|
:collapse="isCollapse"
|
||||||
:text-color="variables.menuText"
|
:background-color="variables.menuBg"
|
||||||
:unique-opened="false"
|
:text-color="variables.menuText"
|
||||||
:active-text-color="variables.menuActiveText"
|
:unique-opened="false"
|
||||||
:collapse-transition="false"
|
:active-text-color="variables.menuActiveText"
|
||||||
mode="vertical">
|
:collapse-transition="false"
|
||||||
<sidebar-item v-for="route in routes"
|
mode="vertical"
|
||||||
:key="route.path"
|
>
|
||||||
:item="route"
|
<sidebar-item
|
||||||
:base-path="route.path" />
|
v-for="route in routes"
|
||||||
|
:key="route.path"
|
||||||
|
:item="route"
|
||||||
|
:base-path="route.path"
|
||||||
|
/>
|
||||||
</el-menu>
|
</el-menu>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -50,11 +56,11 @@ export default {
|
||||||
},
|
},
|
||||||
isCollapse() {
|
isCollapse() {
|
||||||
return !this.sidebar.opened
|
return !this.sidebar.opened
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
routes: [],
|
routes: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -67,6 +73,7 @@ export default {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
getRouters().then((res) => {
|
getRouters().then((res) => {
|
||||||
this.rolaMenu = this.getName(res.data)
|
this.rolaMenu = this.getName(res.data)
|
||||||
|
console.log(this.rolaMenu, '....rolaMenu')
|
||||||
resolve(res)
|
resolve(res)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
@ -123,7 +130,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return newArr
|
return newArr
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -963,7 +963,7 @@
|
||||||
size="small"
|
size="small"
|
||||||
@click="toLogin(scope.row)"
|
@click="toLogin(scope.row)"
|
||||||
>
|
>
|
||||||
{{ '登录' }}
|
登录
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -1379,8 +1379,8 @@ export default {
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
const href =
|
const href =
|
||||||
process.env.VUE_APP_ADDRESS1 +
|
process.env.VUE_APP_CLIENT_ADDRESS +
|
||||||
'freeLogin?token=' +
|
'?token=' +
|
||||||
res.data.access_token
|
res.data.access_token
|
||||||
window.open(href, '_blank')
|
window.open(href, '_blank')
|
||||||
}
|
}
|
||||||
|
|
@ -1392,7 +1392,7 @@ export default {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
const href =
|
const href =
|
||||||
process.env.VUE_APP_ADDRESS +
|
process.env.VUE_APP_ADDRESS +
|
||||||
'freeLogin?token=' +
|
'?token=' +
|
||||||
res.data.access_token
|
res.data.access_token
|
||||||
window.open(href, '_blank')
|
window.open(href, '_blank')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,11 +44,11 @@ module.exports = {
|
||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
'/prod-api': {
|
'/prod-api': {
|
||||||
target: 'http://192.168.0.104:8080/',
|
target: 'http://t-mana.beida413.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true
|
||||||
pathRewrite: {
|
// pathRewrite: {
|
||||||
'^/prod-api': ''
|
// '^/prod-api': ''
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// before: require('./mock/mock-server.js')
|
// before: require('./mock/mock-server.js')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue