update 解决 logout 写死 无法扩展路径问题
This commit is contained in:
parent
8ffe111086
commit
5df5e63afe
@ -56,6 +56,7 @@ import SizeSelect from '@/components/SizeSelect'
|
|||||||
import Search from '@/components/HeaderSearch'
|
import Search from '@/components/HeaderSearch'
|
||||||
import RuoYiGit from '@/components/RuoYi/Git'
|
import RuoYiGit from '@/components/RuoYi/Git'
|
||||||
import RuoYiDoc from '@/components/RuoYi/Doc'
|
import RuoYiDoc from '@/components/RuoYi/Doc'
|
||||||
|
import config from '@/../vue.config'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -102,7 +103,7 @@ export default {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$store.dispatch('LogOut').then(() => {
|
this.$store.dispatch('LogOut').then(() => {
|
||||||
location.href = '/index';
|
location.href = config.publicPath + 'index';
|
||||||
})
|
})
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
}
|
}
|
||||||
|
@ -381,7 +381,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import config from '../../package.json'
|
import config from '@/../package.json'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Index",
|
name: "Index",
|
||||||
|
@ -7,7 +7,6 @@ export default {
|
|||||||
name: "Admin",
|
name: "Admin",
|
||||||
components: { iFrame },
|
components: { iFrame },
|
||||||
data() {
|
data() {
|
||||||
console.log(process.env)
|
|
||||||
return {
|
return {
|
||||||
url: process.env.VUE_APP_MONITRO_ADMIN
|
url: process.env.VUE_APP_MONITRO_ADMIN
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user