diff --git a/src/App.vue b/src/App.vue index 45ec694..11ff27e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ diff --git a/src/sheep/utils/getLaunchParam.ts b/src/sheep/utils/getLaunchParam.ts new file mode 100644 index 0000000..b4c2642 --- /dev/null +++ b/src/sheep/utils/getLaunchParam.ts @@ -0,0 +1,6 @@ +// 获取启动参数 +const getLaunchParam = (): "canteen" | "selfMerchant" | "coopMerchant" | null => { + return new URL(window.location.href).searchParams.get("launchParam") as "canteen" | "selfMerchant" | "coopMerchant" | null +} + +export default getLaunchParam diff --git a/src/static/page/doorAdminRole.svg b/src/static/page/doorAdminRole.svg new file mode 100644 index 0000000..3b7c318 --- /dev/null +++ b/src/static/page/doorAdminRole.svg @@ -0,0 +1 @@ + \ No newline at end of file