update 解决 logout 写死 无法扩展路径问题
| | |
| | | import Search from '@/components/HeaderSearch' |
| | | import RuoYiGit from '@/components/RuoYi/Git' |
| | | import RuoYiDoc from '@/components/RuoYi/Doc' |
| | | import config from '@/../vue.config' |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.$store.dispatch('LogOut').then(() => { |
| | | location.href = '/index'; |
| | | location.href = config.publicPath + 'index'; |
| | | }) |
| | | }).catch(() => {}); |
| | | } |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import config from '../../package.json' |
| | | import config from '@/../package.json' |
| | | |
| | | export default { |
| | | name: "Index", |
| | |
| | | name: "Admin", |
| | | components: { iFrame }, |
| | | data() { |
| | | console.log(process.env) |
| | | return { |
| | | url: process.env.VUE_APP_MONITRO_ADMIN |
| | | }; |