Browse Source

页面bug

qxp192083 4 years ago
parent
commit
660a73f26b

File diff suppressed because it is too large
+ 41 - 0
dgtly-admin/src/main/resources/static/assets/js/index.6ad5e57b.js


+ 1 - 0
dgtly-admin/src/main/resources/static/assets/js/index.6ad5e57b.js.map

@@ -0,0 +1 @@
+{"version":3,"file":"./assets/js/index.6ad5e57b.js","sources":["webpack:///./assets/js/index.6ad5e57b.js"],"mappings":"AAAA;;;;;;;;;;;;;AA01EA;;;;;;;;;;;AA6fA;;;;;;;;AA4rYA;;;;;;;AAojkBA","sourceRoot":""}

File diff suppressed because it is too large
+ 0 - 34
dgtly-admin/src/main/resources/static/assets/js/index.9885e3e3.js


+ 0 - 1
dgtly-admin/src/main/resources/static/assets/js/index.9885e3e3.js.map

@@ -1 +0,0 @@
-{"version":3,"file":"./assets/js/index.9885e3e3.js","sources":["webpack:///./assets/js/index.9885e3e3.js"],"mappings":"AAAA;;;;;;;;;;;;;AA08EA;;;;;;;;;;;AA6fA;;;;;;;;AAotYA","sourceRoot":""}

File diff suppressed because it is too large
+ 4 - 0
dgtly-admin/src/main/resources/static/assets/styles/index.6ad5e57b.css


File diff suppressed because it is too large
+ 1 - 0
dgtly-admin/src/main/resources/static/assets/styles/index.6ad5e57b.css.map


File diff suppressed because it is too large
+ 0 - 4
dgtly-admin/src/main/resources/static/assets/styles/index.9885e3e3.css


File diff suppressed because it is too large
+ 0 - 1
dgtly-admin/src/main/resources/static/assets/styles/index.9885e3e3.css.map


File diff suppressed because it is too large
+ 1 - 1
dgtly-admin/src/main/resources/templates/homeIndex.html


+ 5 - 3
dgtly-homeIndexSrc/src/index.ts

@@ -5,7 +5,9 @@ import { debounce } from "lodash";
 import "./styles";
 import magnetManager from "./modules/index";
 $(async () => {
-  const container = $(".y-container"),
+    var pathName=window.document.location.pathname;
+    var projectName=pathName.substring(0,pathName.substr(1).indexOf('/')+1);
+    const container = $(".y-container"),
     gbimg = $(">.gbimg", container),
     themeSetting = $(".themeSetting", container).on("hidden", () => {
       themeSetting.addClass("hide");
@@ -15,10 +17,10 @@ $(async () => {
     bgColors = Array.from(
       $(".boxcolor:eq(0) li").map((i, item) => $(item).css("backgroundColor"))
     ),
-    save = debounce(x => post("/homeIndex/saveThemeInfo", x), 1e3);
+    save = debounce(x => post(projectName+"/homeIndex/saveThemeInfo", x), 1e3);
   let {
     data: { themeInfo, magnets }
-  }: any = await post("/homeIndex/getThemeAndLayout");
+  }: any = await post(projectName+"/homeIndex/getThemeAndLayout");
   themeInfo = themeInfo || {};
   themeInfo.bgColorIndex = themeInfo.bgColorIndex | 0;
   themeInfo.bgImgIndex = themeInfo.bgImgIndex | 0;