|
|
@@ -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();
|
|
|
|
|
|
|
|
|
|