Commit b4b55fa1 authored by GuanHua's avatar GuanHua

feat:添加路由白名单

parent ad8d977f
......@@ -36,6 +36,9 @@ const mallLists = [
'/infomation',
'/infomation/detail',
'/infomation/search',
'/purchaseOrder',
'/order',
'/pay',
'/shop',
'/shop/commodity',
'/shop/commodity/search',
......@@ -54,6 +57,8 @@ const mallLists = [
'/channelmall/infomation/detail',
'/channelmall/infomation/search',
'/channelmall/about',
'/channelmall/purchaseOrder',
'/channelmall/order',
'/ichannelmall',
'/ichannelmall/commodity',
'/ichannelmall/commodity/search',
......@@ -63,6 +68,8 @@ const mallLists = [
'/ichannelmall/infomation/detail',
'/ichannelmall/infomation/search',
'/ichannelmall/about',
'/ichannelmall/purchaseOrder',
'/ichannelmall/order',
]
// let routeAuthUrls: any[] = []
......@@ -145,7 +152,7 @@ export function onRouteChange({ routes, matchedRoutes, location, action }) {
console.log('onRouteChange')
// 路由切换时, 自动回到顶部
document.body.scrollTop = document.documentElement.scrollTop = 0
if (isDev) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment