gydx_wx 2 ماه پیش
والد
کامیت
11fe0337ab
1فایلهای تغییر یافته به همراه9 افزوده شده و 6 حذف شده
  1. 9 6
      gydxnbplus/src/components/FoodLogin.vue

+ 9 - 6
gydxnbplus/src/components/FoodLogin.vue

@@ -49,7 +49,7 @@ import router from '@/router/index'
 import store from '@/store';
 
 const formModel = ref({
-  ManagerAcc: "6",
+  ManagerAcc: "R6",
   ManagerPass: "666",
 });
 
@@ -57,11 +57,12 @@ const form = ref();
 
 const reset = () => {
   formModel.value.ManagerAcc = '',
-  formModel.value.ManagerPass = ''
+    formModel.value.ManagerPass = ''
 }
 
 const onSubmit = async () => {
   await form.value.validate()
+  //判断账号
   http.get('/action/User/login', formModel.value).then(res => {
     if (res.code === 0) {
       ElMessage.success("登录成功!")
@@ -69,9 +70,9 @@ const onSubmit = async () => {
       reset()
       router.push('/HomeV');
     } else {
-      if(res.message == null){
+      if (res.message == null) {
         ElMessage.error("还没有打开系统哦")
-      }else{
+      } else {
         ElMessage.error(res.message)
       }
     }
@@ -161,7 +162,8 @@ const Login_RememberPass = ref('')
 .el-input {
   height: 40px;
 }
-.el-form{
+
+.el-form {
   padding: 20px;
   border-radius: 8px;
   width: 400px;
@@ -169,7 +171,8 @@ const Login_RememberPass = ref('')
   flex-direction: column;
   align-items: center;
 }
-.el-form-item{
+
+.el-form-item {
   width: 100%;
 }
 </style>