zck 1 éve
szülő
commit
fa26950eaa
1 módosított fájl, 7 hozzáadás és 2 törlés
  1. 7 2
      src/view/login/index.vue

+ 7 - 2
src/view/login/index.vue

@@ -122,7 +122,7 @@ import { reactive, ref } from "vue";
 import { ElMessage } from "element-plus";
 import { useRouter } from "vue-router";
 import { useUserStore } from "@/pinia/modules/user";
-import { getMachineMac } from "@/api/jixiaoguanli/jitairibaobiao";
+import { getMachineMac } from "@/api/mes/job";
 
 
 
@@ -212,6 +212,8 @@ const submitForm = () => {
 // 跳转初始化
 const checkInit = async () => {
   const res = await checkDB();
+  console.log("跳转初始化")
+  console.log(res)
   if (res.code === 0) {
     if (res.data?.needInit) {
       userStore.NeedInit();
@@ -243,6 +245,9 @@ const GetAddr = () => {
           result += "-"; // 根据实际需求修改分隔符
         }
         result += res.macAddress[i];
+        console.log("登录页面自动获取物理地址2222")
+        console.log(result)
+
       }
 
     }
@@ -253,7 +258,7 @@ const GetAddr = () => {
   xmlhttp.send();
 };
 // 在页面加载时获取MAC地址并进行自动登录
-// GetAddr();
+GetAddr();