-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13749c7
commit fc5cec5
Showing
5 changed files
with
56 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
{ | ||
"version": "1.0.0", | ||
"keepAlive": true, | ||
"Version": "2.0.0", | ||
"KeepAlive": true, | ||
"Locale": "zh", | ||
"Layout": "vertical-dark", | ||
"MapConfigure": { | ||
"amapKey": "97b3248d1553172e81f168cf94ea667e", | ||
"baiduKey": "wTHbkkEweiFqZLKunMIjcrb2RcqNXkhc", | ||
"options": { | ||
"resizeEnable": true, | ||
"center": [ | ||
113.6401, | ||
34.72468 | ||
], | ||
"center": [113.6401, 34.72468], | ||
"zoom": 12 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// 响应式storage | ||
import { App } from "vue"; | ||
import Storage from "responsive-storage"; | ||
|
||
export const injectResponsiveStorage = (app: App, config: ServerConfigs) => { | ||
app.use(Storage, { | ||
// 默认显示首页tag | ||
routesInStorage: { | ||
type: Array, | ||
default: Storage.getData(undefined, "routesInStorage") ?? [ | ||
{ | ||
path: "/welcome", | ||
parentPath: "/", | ||
meta: { | ||
title: "message.hshome", | ||
icon: "el-icon-s-home", | ||
showLink: true, | ||
savedPosition: false | ||
} | ||
} | ||
] | ||
}, | ||
// 国际化 默认中文zh | ||
locale: { | ||
type: Object, | ||
default: Storage.getData(undefined, "locale") ?? { | ||
locale: config.Locale | ||
} | ||
}, | ||
// layout模式以及主题 | ||
layout: { | ||
type: Object, | ||
default: Storage.getData(undefined, "layout") ?? { | ||
layout: config.Layout | ||
} | ||
} | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters