fix: 🧩 获取web配置从Redis中获取
This commit is contained in:
parent
0e22a806a8
commit
39a5cacb6d
12
ReadMe.md
12
ReadMe.md
|
@ -12,6 +12,16 @@ Pure-admin文档:https://pure-admin.github.io/pure-admin-doc
|
||||||
|
|
||||||
正式线上预览地址:http://bunny-web.site/#/welcome
|
正式线上预览地址:http://bunny-web.site/#/welcome
|
||||||
|
|
||||||
|
> 如果发现网站打开白屏很有可能是因为更新造成的,因为需要维护删除不需要的功能可能会导致这个情况,但基本不会遇到。
|
||||||
|
>
|
||||||
|
> 谷歌方式如下:
|
||||||
|
>
|
||||||
|
> ![image-20250108225817891](http://116.196.101.14:9000/docs/image-20250108225817891.png)
|
||||||
|
>
|
||||||
|
> Edge方式如下:
|
||||||
|
>
|
||||||
|
> ![image-20250108225915189](http://116.196.101.14:9000/docs/image-20250108225915189.png)
|
||||||
|
|
||||||
**打包视频**
|
**打包视频**
|
||||||
|
|
||||||
https://www.bilibili.com/video/BV1AYm8YSEKY/
|
https://www.bilibili.com/video/BV1AYm8YSEKY/
|
||||||
|
@ -1199,6 +1209,8 @@ mvn clean package -Pprod -DskipTests
|
||||||
mvn clean package -Ptest -DskipTests
|
mvn clean package -Ptest -DskipTests
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**:star: 如果不需要内置文件操作什么的这一步可以忽略**
|
||||||
|
|
||||||
![image-20241108153705104](http://116.196.101.14:9000/docs/auth/image-20241108153705104.png)
|
![image-20241108153705104](http://116.196.101.14:9000/docs/auth/image-20241108153705104.png)
|
||||||
|
|
||||||
这个文件夹是必须的
|
这个文件夹是必须的
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bunny-admin-web",
|
"name": "bunny-admin-web",
|
||||||
"version": "2.0.1",
|
"version": "2.4.9",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -37,7 +37,34 @@ export const form = ref({
|
||||||
export const onSearch = async () => {
|
export const onSearch = async () => {
|
||||||
const result = await fetchGetWebConfig();
|
const result = await fetchGetWebConfig();
|
||||||
if (result.code !== 200) return;
|
if (result.code !== 200) return;
|
||||||
form.value = result.data;
|
const data = result.data;
|
||||||
|
|
||||||
|
form.value.version = data.Version;
|
||||||
|
form.value.title = data.Title;
|
||||||
|
form.value.copyright = data.Copyright;
|
||||||
|
form.value.fixedHeader = data.FixedHeader;
|
||||||
|
form.value.hiddenSideBar = data.HiddenSideBar;
|
||||||
|
form.value.multiTagsCache = data.MultiTagsCache;
|
||||||
|
form.value.keepAlive = data.KeepAlive;
|
||||||
|
form.value.locale = data.Locale;
|
||||||
|
form.value.layout = data.Layout;
|
||||||
|
form.value.theme = data.Theme;
|
||||||
|
form.value.darkMode = data.DarkMode;
|
||||||
|
form.value.overallStyle = data.OverallStyle;
|
||||||
|
form.value.grey = data.Grey;
|
||||||
|
form.value.weak = data.Weak;
|
||||||
|
form.value.hideTabs = data.HideTabs;
|
||||||
|
form.value.hideFooter = data.HideFooter;
|
||||||
|
form.value.stretch = data.Stretch;
|
||||||
|
form.value.sidebarStatus = data.SidebarStatus;
|
||||||
|
form.value.epThemeColor = data.EpThemeColor;
|
||||||
|
form.value.showLogo = data.ShowLogo;
|
||||||
|
form.value.showModel = data.ShowModel;
|
||||||
|
form.value.menuArrowIconNoTransition = data.MenuArrowIconNoTransition;
|
||||||
|
form.value.cachingAsyncRoutes = data.CachingAsyncRoutes;
|
||||||
|
form.value.tooltipEffect = data.TooltipEffect;
|
||||||
|
form.value.responsiveStorageNameSpace = data.ResponsiveStorageNameSpace;
|
||||||
|
form.value.menuSearchHistory = data.MenuSearchHistory;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** 提交表单 */
|
/** 提交表单 */
|
||||||
|
|
Loading…
Reference in New Issue