Browse Source

调整环境配置和页面布局
- 更新了.env.development文件中的API URL配置
- 修改了公司信息和店铺信息页面的布局结构- 优化了卡片样式和分页设计

WanGxC 7 months ago
parent
commit
2e81ab9306

+ 2 - 2
.env.development

@@ -3,9 +3,9 @@ ENV='development'
 
 # 本地环境接口地址
 # VITE_API_URL = 'http://127.0.0.1:8000'
-VITE_API_URL='http://192.168.1.225:9090/'
+ VITE_API_URL='http://192.168.1.225:9090/'
 # VITE_API_URL = 'http://192.168.1.22:8080/'
-# VITE_API_URL = 'http://amzads.zositechc.cn'
+# VITE_API_URL='http://asset.zositechc.cn'
 
 # 是否启用按钮权限
 VITE_PM_ENABLED=true

+ 3 - 3
src/views/company-information/index.vue

@@ -38,8 +38,8 @@ function handleRefresh() {
 </script>
 
 <template>
-  <div class="px-2.5">
-    <el-card class="my-2.5" shadow="never" style="border: none;">
+  <div class="flex flex-col p-5">
+    <el-card class="mb-5" style="border: none;">
       <div class="flex justify-between items-baseline">
         <div>
           <span class="font-bold text-xl">公司信息概览</span>
@@ -50,7 +50,7 @@ function handleRefresh() {
         </span>
       </div>
     </el-card>
-    <el-card v-loading="loading" shadow="never" style="border: none; min-height: 692px;">
+    <el-card v-loading="loading" class="flex-grow" style="border: none;">
       <InfoCard></InfoCard>
     </el-card>
     <CompanyCreate v-model="isOpen" @refresh="handleRefresh"/>

+ 4 - 2
src/views/shop-information/index.vue

@@ -26,11 +26,13 @@ async function initData() {
 </script>
 
 <template>
-  <div class="px-2.5">
+  <div class="flex flex-col px-5">
     <el-divider content-position="left">
       <div class="font-bold text-xl">店铺信息概览</div>
     </el-divider>
-    <el-card v-loading="loading" shadow="never" style="border: none; min-height: 692px;">
+
+    <!-- 添加 flex-grow 类,确保 el-card 占据剩余空间 -->
+    <el-card v-loading="loading" class="flex-grow" shadow="never">
       <InfoCard></InfoCard>
     </el-card>
   </div>