ymy há 1 ano atrás
pai
commit
273c0dbd39
3 ficheiros alterados com 23 adições e 17 exclusões
  1. 1 1
      src/store/modules/user.js
  2. 21 15
      src/views/index.vue
  3. 1 1
      vite.config.js

+ 1 - 1
src/store/modules/user.js

@@ -77,7 +77,7 @@ const useUserStore = defineStore(
             this.permissions = []
             removeToken()
             const redirect = location.origin
-            location.href = `${process.env.VITE_APP_LOGIN_URL}?&redirect=${encodeURIComponent(redirect)}`
+            location.href = `${import.meta.env.VITE_APP_LOGIN_URL}?&redirect=${encodeURIComponent(redirect)}`
             resolve()
           }).catch(error => {
             reject(error)

+ 21 - 15
src/views/index.vue

@@ -165,23 +165,23 @@
 <style scoped lang="scss">
 .home {
   width: calc(100% - 64px);
-  height: calc(100% - 64px);
+  height: calc(100% - 48px);
   box-sizing: border-box;
-  margin: 32px;
+  margin: 16px 16px 32px;
   .box01{
     width: 100%;
     height: calc(60% - 16px);
     box-sizing: border-box;
-    padding: 0 24px 24px;
+    // padding: 0 24px 24px;
     margin-bottom: 16px;
-    border: solid 1px #BBB;
+    // border: solid 1px #BBB;
     .top-main{
       width: 100%;
       height: 70px;
       display: flex;
       align-items: center;
       justify-content: space-between;
-      border-bottom: solid 1px #BBB;
+      // border-bottom: solid 1px #BBB;
       box-sizing: border-box;
       margin-bottom: 16px;
       >span{
@@ -197,13 +197,17 @@
         width: 40%;
         height: 100%;
         box-sizing: border-box;
-        border-right: solid 1px #BBB;
+        background-color:#f0f8ff;
+        padding: 16px;
+        // border-right: solid 1px #BBB;
       }
       .line{
-        width: 60%;
-        height: calc(100% - 50px);
+        width: calc(60% - 16px);
+        height: 100%;
         box-sizing: border-box;
-        padding-left: 24px;
+        margin-left: 16px;
+        padding: 16px;
+        background-color:#f0f8ff;
         .line-chart{
           height: 100%;
           width: 100%;
@@ -215,8 +219,8 @@
     width: 100%;
     height: 40%;
     box-sizing: border-box;
-    padding: 16px;
-    border: solid 1px #BBB;
+    // padding: 16px;
+    // border: solid 1px #BBB;
     display: flex;
     .eqiup-state{
       font-size: 12px;
@@ -230,20 +234,22 @@
     }
     
     .con{
-      width: 50%;
+      width: calc(50% - 8px);
       height: 100%;
       box-sizing: border-box;
+      padding: 16px;
+      background-color:#f0f8ff;
       .spec{
         font-size: 18px;
         padding-left: 16px;
       }
     }
     .con:first-child{
-      padding-right: 24px;
-      border-right: solid 1px #BBB;
+      margin-right: 8px;
+      // border-right: solid 1px #BBB;
     }
     .con:last-child{
-      padding-left: 24px;
+      margin-left: 8px;
     }
   }
   .title{

+ 1 - 1
vite.config.js

@@ -35,7 +35,7 @@ export default defineConfig(({ mode, command }) => {
         //   rewrite: (p) => p.replace(/^\/dev-api/, '')
         // },
         '/szzs': {
-          target: 'http://192.168.2.39:8100/',
+          target: 'http://192.168.2.39:80/',
           changeOrigin: true,
           // rewrite: (p) => p.replace(/^\/szzs/, '')
         }