|
@@ -1,4 +1,4 @@
|
|
|
-import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
|
|
|
+import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
import { getToken } from '../utils/auth'
|
|
import { getToken } from '../utils/auth'
|
|
|
import Login from '../views/Login/index.vue'
|
|
import Login from '../views/Login/index.vue'
|
|
|
import Dashboard from '../views/Dashboard.vue'
|
|
import Dashboard from '../views/Dashboard.vue'
|
|
@@ -8,9 +8,9 @@ import Inbound from '../views/Inbound.vue'
|
|
|
import Outbound from '../views/Outbound.vue'
|
|
import Outbound from '../views/Outbound.vue'
|
|
|
import Ledger from '../views/Ledger.vue'
|
|
import Ledger from '../views/Ledger.vue'
|
|
|
|
|
|
|
|
-export const router = createRouter({ history: createWebHistory(), routes: [
|
|
|
|
|
- { path: '/login', component: Login },
|
|
|
|
|
|
|
+export const router = createRouter({ history: createWebHashHistory(), routes: [
|
|
|
{ path: '/', redirect: '/dashboard' },
|
|
{ path: '/', redirect: '/dashboard' },
|
|
|
|
|
+ { path: '/login', component: Login },
|
|
|
{ path: '/dashboard', component: Dashboard, meta: { title: '工作台' } },
|
|
{ path: '/dashboard', component: Dashboard, meta: { title: '工作台' } },
|
|
|
{ path: '/master', component: Master, meta: { title: '基础资料管理' } },
|
|
{ path: '/master', component: Master, meta: { title: '基础资料管理' } },
|
|
|
{ path: '/sku', component: Sku, meta: { title: '商品 / SKU 管理' } },
|
|
{ path: '/sku', component: Sku, meta: { title: '商品 / SKU 管理' } },
|