blank路由问题
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { createRouter, createWebHashHistory } from 'vue-router'
|
||||
import HomeView from '../views/home/index.vue'
|
||||
import LoginView from '../views/login/index.vue'
|
||||
import BlankView from '../views/BlankView.vue'
|
||||
|
||||
const routes = [
|
||||
{
|
||||
@@ -16,7 +17,7 @@ const routes = [
|
||||
{
|
||||
path: '/blank',
|
||||
name: 'blank',
|
||||
component: import('../views/BlankView.vue')
|
||||
component: BlankView
|
||||
}
|
||||
]
|
||||
|
||||
|
@@ -43,7 +43,6 @@
|
||||
|
||||
<script>
|
||||
import store from '@/store';
|
||||
import router from '@/router';
|
||||
|
||||
var sendFlag = true;
|
||||
export default {
|
||||
@@ -119,7 +118,7 @@ export default {
|
||||
adminId: array[0],
|
||||
username: res.username
|
||||
});
|
||||
window.location.href = '/blank';
|
||||
window.location.href = '#/blank';
|
||||
});
|
||||
} else {
|
||||
if (data.msg == "4003" || data.msg == "404") {
|
||||
|
Reference in New Issue
Block a user