bill 2 år sedan
förälder
incheckning
3283bfa210
2 ändrade filer med 15 tillägg och 13 borttagningar
  1. 3 1
      src/api/tagging-style.ts
  2. 12 12
      vite.config.ts

+ 3 - 1
src/api/tagging-style.ts

@@ -1,6 +1,7 @@
 import axios from './instance'
 import { TAGGING_LIST } from './constant'
 import { fetchTaggings } from './tagging'
+import { params } from '@/env'
 
 export interface TaggingStyle {
   id: string
@@ -13,10 +14,11 @@ export type TaggingStyles = TaggingStyle[]
 
 export const getTaggingStyles = async () => {
   // axios.post<TaggingStyles>(TAGGING_LIST)
+  
   return [
     {
       id: '1', 
-      icon: 'static/img_default/lQLPDhrvVzvNvTswMLAOU-UNqYnnZQG1YPJUwLwA_48_48.png',
+      icon: params.baseURL + '/profile/static/img_default/lQLPDhrvVzvNvTswMLAOU-UNqYnnZQG1YPJUwLwA_48_48.png',
       name: '111',
       default: true
     }

+ 12 - 12
vite.config.ts

@@ -28,16 +28,16 @@ export default defineConfig({
       }
     ]
   },
-  server: {
-    host: '0.0.0.0',
-    port: 5173,
-    open: true,
-    proxy: {
-      '/api': {
-        target: 'http://192.168.0.152:8088/',
-        changeOrigin: true,
-        rewrite: path => path.replace(/^\/api/, '')
-      }
-    }
-  }
+  // server: {
+  //   host: '0.0.0.0',
+  //   port: 5173,
+  //   open: true,
+  //   proxy: {
+  //     '/api': {
+  //       target: 'http://192.168.0.152:8088/',
+  //       changeOrigin: true,
+  //       rewrite: path => path.replace(/^\/api/, '')
+  //     }
+  //   }
+  // }
 })