浏览代码

refactor(env): 更新 API 地址并优化数据展示

- 更新 .env.development 中的 VITE_API_URL 为 http://operate.zosi.com.cn/
- 在 DataTableSlot 组件中添加空数据展示为 "-"
WanGxC 5 月之前
父节点
当前提交
399eb23c36

+ 2 - 2
.env.development

@@ -3,8 +3,8 @@ ENV='development'
 
 # 本地环境接口地址
 # VITE_API_URL = 'http://127.0.0.1:8000'
-VITE_API_URL='http://192.168.1.225:82/'
-# VITE_API_URL='http://operate.zosi.com.cn/'
+# VITE_API_URL='http://192.168.1.225:82/'
+VITE_API_URL='http://operate.zosi.com.cn/'
 # VITE_API_URL="http://192.168.1.225:82/"
 
 # 是否启用按钮权限

+ 1 - 1
src/views/store-manage/market-store/component/DataTableSlot.vue

@@ -35,7 +35,7 @@ const region = countryInfoStore.Region.find(r => r.code == row.region);
     </div>
     <!-- 动态获取 -->
     <div v-else>
-      {{ row[field] }}
+      {{ row[field] || '-' }}
     </div>
   </div>
 </template>

+ 1 - 1
src/views/store-manage/online-merchandise/component/DataTableSlot.vue

@@ -88,7 +88,7 @@ async function goto() {
     </div>
     <!-- 动态获取 -->
     <div v-else>
-      {{ row[field] }}
+      {{ row[field] || '-' }}
     </div>
   </div>
 </template>