Skip to content

Commit 0929348

Browse files
committed
♻️ refactor: code
1 parent 153850d commit 0929348

File tree

7 files changed

+1
-258
lines changed

7 files changed

+1
-258
lines changed

mock/controller/router.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,6 @@ const data = [
9494
permissions: ['admin'],
9595
},
9696
},
97-
{
98-
path: 'map',
99-
name: 'Map',
100-
component: '@/views/vab/map/index',
101-
meta: { title: '地图', permissions: ['admin'], badge: 'Pro' },
102-
},
10397
{
10498
path: 'webSocket',
10599
name: 'WebSocket',
@@ -176,12 +170,6 @@ const data = [
176170
component: '@/views/vab/lodash/index',
177171
meta: { title: 'lodash', permissions: ['admin'] },
178172
},
179-
{
180-
path: 'smallComponents',
181-
name: 'SmallComponents',
182-
component: '@/views/vab/smallComponents/index',
183-
meta: { title: '小组件', permissions: ['admin'] },
184-
},
185173

186174
{
187175
path: 'upload',

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
"jsencrypt": "^3.3.2",
4343
"layouts": "file:layouts",
4444
"lodash": "^4.17.21",
45-
"maptalks": "^0.49.5",
46-
"mapv": "^2.0.62",
4745
"mockjs": "^1.1.0",
4846
"nprogress": "^0.2.0",
4947
"qs": "^6.12.1",

src/config/setting.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const setting = {
5959
//需要加loading层的请求,防止重复提交
6060
debounce: ['doEdit'],
6161
//需要自动注入并加载的模块
62-
providePlugin: { maptalks: 'maptalks', 'window.maptalks': 'maptalks' },
62+
providePlugin: {},
6363
//代码生成机生成在view下的文件夹名称
6464
templateFolder: 'project',
6565
//是否显示终端donation打印

src/router/index.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,6 @@ export const asyncRoutes = [
121121
permissions: ['admin'],
122122
},
123123
},
124-
{
125-
path: 'map',
126-
component: () => import('@/views/vab/map/index'),
127-
name: 'Map',
128-
meta: {
129-
title: '地图',
130-
permissions: ['admin'],
131-
},
132-
},
133124

134125
{
135126
path: 'webSocket',
@@ -201,12 +192,6 @@ export const asyncRoutes = [
201192
component: () => import('@/views/vab/lodash/index'),
202193
meta: { title: 'lodash', permissions: ['admin'] },
203194
},
204-
{
205-
path: 'smallComponents',
206-
name: 'SmallComponents',
207-
component: () => import('@/views/vab/smallComponents/index'),
208-
meta: { title: '小组件', permissions: ['admin'] },
209-
},
210195

211196
{
212197
path: 'upload',

src/utils/vab.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -143,28 +143,6 @@ const install = (Vue) => {
143143
return height
144144
}
145145

146-
/* 全局map图层 */
147-
Vue.prototype.$baseMap = () => {
148-
return new maptalks.Map('map', {
149-
center: [116.41348403785, 39.910843952376],
150-
zoom: 12,
151-
minZoom: 1,
152-
maxZoom: 19,
153-
spatialReference: {
154-
projection: 'baidu',
155-
},
156-
attribution: {
157-
content: '© vue-admin-beautiful',
158-
},
159-
baseLayer: new maptalks.TileLayer('base', {
160-
cssFilter: 'sepia(100%) invert(90%)',
161-
urlTemplate: 'http://online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1',
162-
subdomains: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
163-
attribution: '&copy; <a target="_blank" href="http://map.baidu.com">Baidu</a>',
164-
}),
165-
})
166-
}
167-
168146
/* 全局lodash */
169147
Vue.prototype.$baseLodash = lodash
170148
/* 全局事件总线 */

src/views/vab/map/index.vue

Lines changed: 0 additions & 102 deletions
This file was deleted.

src/views/vab/smallComponents/index.vue

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)