Browse Source

修改图片地址

lex 1 year ago
parent
commit
ee67e01e31
4 changed files with 7 additions and 5 deletions
  1. 1 1
      public/version.json
  2. 2 2
      src/views/xiaoku-music/index.tsx
  3. 2 0
      src/views/xiaoku-music/type.ts
  4. 2 2
      vite.config.ts

+ 1 - 1
public/version.json

@@ -1 +1 @@
-{"version":1708672917092}
+{"version":1709271796004}

+ 2 - 2
src/views/xiaoku-music/index.tsx

@@ -475,10 +475,10 @@ export default defineComponent({
     const musicImg = computed(() => {
       let imgs: any = [];
       if (data.showMusicImg === 'first') {
-        const img = activeItem.value?.musicFirstSvg;
+        const img = activeItem.value?.musicFirstImg;
         imgs = img ? img.split(',') : [];
       } else if (data.showMusicImg === 'fixed') {
-        const img = activeItem.value?.musicJianSvg;
+        const img = activeItem.value?.musicJianImg;
         imgs = img ? img.split(',') : [];
       } else if (data.showMusicImg === 'staff') {
         const img = activeItem.value?.musicImg || activeItem.value?.musicSvg;

+ 2 - 0
src/views/xiaoku-music/type.ts

@@ -16,5 +16,7 @@ export interface IMusicItem {
   musicSvg: string;
   musicImg: string;
   musicFirstSvg: string;
+  musicFirstImg: string;
   musicJianSvg: string;
+  musicJianImg: string;
 }

+ 2 - 2
vite.config.ts

@@ -23,8 +23,8 @@ function resolve(dir: string) {
 }
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
-const proxyUrl = 'https://dev.kt.colexiu.com/';
-// const proxyUrl = 'https://test.lexiaoya.cn';
+// const proxyUrl = 'https://dev.kt.colexiu.com/';
+const proxyUrl = 'https://test.lexiaoya.cn';
 // const proxyUrl = 'http://192.168.3.14:7989';
 const now = new Date().getTime();
 export default defineConfig(() => {