add ProductTab
This commit is contained in:
+1
-1
@@ -129,7 +129,7 @@ async function resolveStoreAccessRedirect(to: RouteLocationNormalized): Promise<
|
||||
const routeName = String(to.name || "");
|
||||
const storeDiaryRouteNameList = ["StoreDiaryList", "StoreDiaryCreate", "StoreDiaryDetail", "StoreDiaryEdit"];
|
||||
if (storeDiaryRouteNameList.includes(routeName)) {
|
||||
if (!userStore.hasRoles(gaoRoleCodes.storeManager) || userStore.hasRoles(gaoRoleCodes.globalManager)) {
|
||||
if (!userStore.hasRoles(gaoRoleCodes.storeManager)) {
|
||||
return "/management";
|
||||
}
|
||||
const currentStoreStore = useCurrentStoreStore();
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
import HomeTab from "@/pages/tabs/HomeTab.vue";
|
||||
import ProductTab from "@/pages/tabs/ProductTab.vue";
|
||||
import SettingTab from "@/pages/tabs/SettingTab.vue";
|
||||
import StoreTab from "@/pages/tabs/StoreTab.vue";
|
||||
|
||||
@@ -32,6 +33,20 @@ const tabRoutes: RouteRecordRaw[] = [
|
||||
darkBodyBackground: "#10161f"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "/product",
|
||||
name: "ProductTab",
|
||||
component: ProductTab,
|
||||
meta: {
|
||||
depth: 2,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: false,
|
||||
navBarTitle: "产品",
|
||||
tabBarVisible: true,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "/management",
|
||||
name: "SettingTab",
|
||||
|
||||
Reference in New Issue
Block a user