lgh 1 anno fa
parent
commit
5283aeab76
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      src/App.vue
  2. 1 1
      src/stores/counter.js

+ 1 - 1
src/App.vue

@@ -46,7 +46,7 @@ provide('reload', ()=>{
     }
 
     .el-form {
-      width: 940px;
+      min-width: 940px;
     }
 
     .el-form-item__label {

+ 1 - 1
src/stores/counter.js

@@ -41,7 +41,7 @@ export const useCounterStore = defineStore('counter', () => {
             $router.push('/home')
           }, 1000)
       } else {
-        ElMessage.warning('登录失败')
+        ElMessage.warning(res.message || '登录失败')
       }
     })
   }