From 9cad6a832c786989be620573b09badccfe7e3b51 Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期一, 25 八月 2025 15:11:37 +0800
Subject: [PATCH] 首页头部,样式调整

---
 src/assets/js/userAction.js |   23 +++++++++--------------
 1 files changed, 9 insertions(+), 14 deletions(-)

diff --git a/src/assets/js/userAction.js b/src/assets/js/userAction.js
index 98952f6..8ecf23a 100644
--- a/src/assets/js/userAction.js
+++ b/src/assets/js/userAction.js
@@ -1,11 +1,6 @@
 import config from "@/assets/js/config.js";
-import toolClass from "@/assets/js/toolClass";
 
-
-import jobApi
-// newSession,
-// newJobWithNewView
-from "./middleGround/api/job"
+import jobApi from "./middleGround/api/job"; // newJobWithNewView // newSession,
 
 export function setSessionGuid(type, id) {
   var cityCode = null;
@@ -22,7 +17,7 @@
   } else {
     cityCode = {
       cip: "0.0.0.0",
-      cname: "鏈煡"
+      cname: "鏈煡",
     };
   }
   const _city = cityCode.cname.substring(3);
@@ -38,9 +33,9 @@
     city: _city ? _city : _province,
   };
 
-  jobApi.newSession(params).then((res) => {
+  jobApi.newSession(params).then(res => {
     storage.set("sessionGuid", res, 30);
-    setNewView(type, id)
+    setNewView(type, id);
   });
 }
 
@@ -81,10 +76,10 @@
     try {
       val = JSON.parse(val);
     } catch (e) {
-      return e
+      return e;
     }
     return val;
-  }
+  },
 };
 
 function myBrowser() {
@@ -118,7 +113,7 @@
 
 export function setNewView(type, id) {
   if (!sessionStorage.getItem("sessionGuid")) {
-    setSessionGuid(type, id)
+    setSessionGuid(type, id);
   }
 
   const sessionGuid = sessionStorage.getItem("sessionGuid");
@@ -130,11 +125,11 @@
       appRefCode: config.appRefCode,
       type: "View",
       url: toPath == null ? "/" : toPath,
-      ref: fromPath == null ? "/" : fromPath
+      ref: fromPath == null ? "/" : fromPath,
     };
     if (id) {
       params[type] = id;
     }
-    jobApi.newJobWithNewView(params).then((res) => {});
+    jobApi.newJobWithNewView(params).then(res => {});
   }
 }
\ No newline at end of file

--
Gitblit v1.9.1