diff --git a/mock/module/user.ts b/mock/module/user.ts
index 814939e..641b5f9 100644
--- a/mock/module/user.ts
+++ b/mock/module/user.ts
@@ -234,6 +234,45 @@ const userRoutes = [
},
],
},
+ {
+ name: 'error',
+ path: '/error',
+ redirect: '/error/not-found',
+ meta: {
+ title: '异常页',
+ requiresAuth: true,
+ icon: 'icon-park-outline:error-computer',
+ },
+ children: [
+ {
+ name: 'not-found',
+ path: '/error/not-found',
+ meta: {
+ title: '404页',
+ requiresAuth: true,
+ icon: 'icon-park-outline:error',
+ },
+ },
+ {
+ name: 'not-permission',
+ path: '/error/not-permission',
+ meta: {
+ title: '403页',
+ requiresAuth: true,
+ icon: 'carbon:error',
+ },
+ },
+ {
+ name: 'service-error',
+ path: '/error/service-error',
+ meta: {
+ title: '500页',
+ requiresAuth: true,
+ icon: 'carbon:data-error',
+ },
+ },
+ ],
+ },
{
name: 'about',
path: '/about',
diff --git a/package.json b/package.json
index d904fa9..841d049 100644
--- a/package.json
+++ b/package.json
@@ -24,6 +24,7 @@
"./src/**/*.{js,jsx,ts,tsx,less,json}": "prettier --loglevel warn --write"
},
"dependencies": {
+ "@vueuse/core": "^9.3.0",
"@wangeditor/editor": "^5.1.21",
"@wangeditor/editor-for-vue": "^5.1.12",
"axios": "^0.27.2",
diff --git a/src/config/index.ts b/src/config/index.ts
new file mode 100644
index 0000000..0c103ca
--- /dev/null
+++ b/src/config/index.ts
@@ -0,0 +1 @@
+export * from './sdk';
diff --git a/src/config/sdk.ts b/src/config/sdk.ts
new file mode 100644
index 0000000..779b4ab
--- /dev/null
+++ b/src/config/sdk.ts
@@ -0,0 +1,5 @@
+/* 高德地图开发SDk */
+export const GAODE_MAP_SDK_URL = 'https://webapi.amap.com/maps?v=2.0&key=85e62187c6f8e51c797c87b1f36f787a';
+/* 百度地图开发SDk */
+export const BAIDU_MAP_SDK_URL =
+ 'https://api.map.baidu.com/getscript?v=3.0&ak=MwqQwPxa5ipusyNmH1WT62y5DKhYxIgb&services=&t=20220816154130';
diff --git a/src/router/routes/index.ts b/src/router/routes/index.ts
index edbbdfb..6013099 100644
--- a/src/router/routes/index.ts
+++ b/src/router/routes/index.ts
@@ -19,8 +19,8 @@ export const routes: RouteRecordRaw[] = [
},
},
{
- path: '/no-permission',
- name: 'no-permission',
+ path: '/not-permission',
+ name: 'not-permission',
component: () => import('@/views/error/not-permission/index.vue'),
meta: {
title: '用户无权限',
diff --git a/src/store/modules/tab.ts b/src/store/modules/tab.ts
index d40f432..c8ef67a 100644
--- a/src/store/modules/tab.ts
+++ b/src/store/modules/tab.ts
@@ -23,7 +23,7 @@ export const useTabStore = defineStore('tab-store', {
},
],
tabs: [],
- tabWhiteList: ['not-found', 'no-permission', 'service-error', 'login'],
+ tabWhiteList: ['not-found', 'not-permission', 'service-error', 'login'],
currentTab: 'dashboard_workbench',
};
},
diff --git a/src/typings/global.d.ts b/src/typings/global.d.ts
index 9b24e4f..af5554e 100644
--- a/src/typings/global.d.ts
+++ b/src/typings/global.d.ts
@@ -4,3 +4,6 @@ interface Window {
$message?: import('naive-ui').MessageApiInjection;
$notification?: import('naive-ui').NotificationApiInjection;
}
+
+declare const AMap: any;
+declare const BMap: any;
diff --git a/src/views/plugin/map/components/AMap.vue b/src/views/plugin/map/components/AMap.vue
new file mode 100644
index 0000000..8c4e0ba
--- /dev/null
+++ b/src/views/plugin/map/components/AMap.vue
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
diff --git a/src/views/plugin/map/components/BMap.vue b/src/views/plugin/map/components/BMap.vue
new file mode 100644
index 0000000..e70f52f
--- /dev/null
+++ b/src/views/plugin/map/components/BMap.vue
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
diff --git a/src/views/plugin/map/index.vue b/src/views/plugin/map/index.vue
index e5fecf4..b806eb6 100644
--- a/src/views/plugin/map/index.vue
+++ b/src/views/plugin/map/index.vue
@@ -1,7 +1,29 @@
- 地图示例
+
+
+
+
+
+
+
-
+