lex-xin hace 7 meses
padre
commit
2dcf727a85
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 2 2
      src/views/music/music-detail/index.tsx
  2. 1 1
      vite.config.ts

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

@@ -837,8 +837,8 @@ export default defineComponent({
                       }}
                     >
                       {paymentType.value.map(tag => (
-                        <Tag
-                          style={{ color: colors[tag].color }}
+                        tag &&  <Tag
+                          style={{ color: colors[tag]?.color }}
                           class={styles.tag}
                           type="success"
                           plain

+ 1 - 1
vite.config.ts

@@ -12,7 +12,7 @@ function resolve(dir: string) {
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
 // const proxyUrl = 'https://online.colexiu.com/'
-const proxyUrl = 'https://dev.colexiu.com/'
+const proxyUrl = 'https://test.colexiu.com/'
 // const proxyUrl = 'http://192.168.3.14:8000/'
 export default defineConfig({
   base: './',