Merge branch 'ymf' of https://newgitea.sxczgkj.cn/czg_team/cashier-web into gyq
This commit is contained in:
commit
1a4a8515c3
|
|
@ -676,7 +676,7 @@ export const constantRoutes: RouteRecordRaw[] = [
|
|||
* 创建路由
|
||||
*/
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
history: createWebHashHistory(), //使用哈希模式,避免前端路由和后端请求地址冲突问题,比如前端路由 /order/index 后端路由 /order* 会冲突导致刷新页面成了请求
|
||||
routes: constantRoutes,
|
||||
// 刷新时,滚动条位置还原
|
||||
scrollBehavior: () => ({ left: 0, top: 0 }),
|
||||
|
|
|
|||
Loading…
Reference in New Issue