gemercheung 6 달 전
부모
커밋
5a56f8b78e
2개의 변경된 파일15개의 추가작업 그리고 14개의 파일을 삭제
  1. 2 1
      src/api/setting.ts
  2. 13 13
      src/views/setting/index.vue

+ 2 - 1
src/api/setting.ts

@@ -1,5 +1,5 @@
 import { GET_SETTING, UPDATE_SETTING } from "./constant";
-import defaultCover from "@/assets/cover.png";
+// import defaultCover from "@/assets/cover.png";
 import { params } from "@/env";
 import axios from "./instance";
 
@@ -27,6 +27,7 @@ export type Setting = {
   fov?: number;
   openCompass?: boolean;
 };
+const defaultCover = 'https://4dkk.4dage.com/fusion/default/images/cover.jpg'
 
 const toLocal = (serviceSetting: ServeSetting): Setting => ({
   id: serviceSetting.settingsId,

+ 13 - 13
src/views/setting/index.vue

@@ -45,44 +45,44 @@ watchEffect(async () => {
     {
       label: "地图",
       type: "map",
-      image: (await import("./images/map.png")).default,
+      image: "https://4dkk.4dage.com/fusion/default/images/map.png",
       value: "map",
     },
     {
       label: "蓝天白云",
       type: "img",
-      image: (await import("./images/pic_ltby@2x.png")).default,
-      value: (await import("./images/蓝天白云.jpg")).default,
+      image: "https://4dkk.4dage.com/fusion/default/images/pic_ltby@2x.png",
+      value: "https://4dkk.4dage.com/fusion/default/images/蓝天白云.jpg",
     },
     {
       label: "乌云密布",
       type: "img",
-      image: (await import("./images/pic_wymb@2x.png")).default,
-      value: (await import("./images/乌云密布.jpg")).default,
+      image: "https://4dkk.4dage.com/fusion/default/images/pic_wymb@2x.png",
+      value: "https://4dkk.4dage.com/fusion/default/images/乌云密布.jpg",
     },
     {
       label: "夜空",
       type: "img",
-      image: (await import("./images/pic_yk@2x.png")).default,
-      value: (await import("./images/夜空.jpg")).default,
+      image: "https://4dkk.4dage.com/fusion/default/images/pic_yk@2x.png",
+      value: "https://4dkk.4dage.com/fusion/default/images/夜空.jpg",
     },
     // {
     //   label: "草地",
     //   type: "img",
-    //   image: (await import("./images/pic_cd@2x.png")).default,
-    //   value: (await import("./images/草地.jpg")).default,
+    //   image: "https://4dkk.4dage.com/fusion/default/images/pic_cd@2x.png",
+    //   value: "https://4dkk.4dage.com/fusion/default/images/草地.jpg",
     // },
     // {
     //   label: "道路",
     //   type: "img",
-    //   image: (await import("./images/pic_dl@2x.png")).default,
-    //   value: (await import("./images/道路.jpg")).default,
+    //   image: "https://4dkk.4dage.com/fusion/default/images/pic_dl@2x.png",
+    //   value: "https://4dkk.4dage.com/fusion/default/images/道路.jpg",
     // },
     {
       label: "傍晚",
       type: "img",
-      image: (await import("./images/pic_bw@2x.png")).default,
-      value: (await import("./images/傍晚.jpg")).default,
+      image: "https://4dkk.4dage.com/fusion/default/images/pic_bw@2x.png",
+      value: "https://4dkk.4dage.com/fusion/default/images/傍晚.jpg",
     },
     // { label: "灰色", type: "color", image: "#333333", value: "#333" },
     // { label: "黑色", type: "color", image: "#000000", value: "#000" },