liushengqiang 1 年之前
父节点
当前提交
eb70594142
共有 3 个文件被更改,包括 8 次插入7 次删除
  1. 5 4
      src/page-instrument/App.tsx
  2. 1 1
      src/page-instrument/view-figner/index.module.less
  3. 2 2
      vite.config.ts

+ 5 - 4
src/page-instrument/App.tsx

@@ -25,15 +25,16 @@ export default defineComponent({
 					if (browserInfo.isApp) {
 						postMessage({ api: "login" });
 					} else {
-						window.location.href = `${
-							/(192|localhost)/.test(location.origin) ? "https://test.lexiaoya.cn" : location.origin
-						}/classroom`;
+						if (/(192|localhost)/.test(location.origin)) {
+							return;
+						}
+						window.location.href = `${location.origin}/classroom`;
 					}
 					return;
 				}
 				const student = res?.data || {};
 				setUserInfo(student);
-				storeData.platformType = student.clientType === 'STUDENT' ? 'STUDENT' : ''
+				storeData.platformType = student.clientType === "STUDENT" ? "STUDENT" : "";
 			} catch (error) {
 				storeData.status = "error";
 				api_cloudLoading();

+ 1 - 1
src/page-instrument/view-figner/index.module.less

@@ -413,7 +413,7 @@
     display: flex;
     justify-content: space-evenly;
     align-items: center;
-    padding: 0 10px 6px 10px;
+    padding: 0 10px 14px 10px;
 }
 
 .loading {

+ 2 - 2
vite.config.ts

@@ -64,8 +64,8 @@ export default defineConfig({
 				rewrite: (path) => path.replace(/^\/orchestra/, ""),
 			},
 			"^/instrument/.*": {
-				target: "https://kt.colexiu.com",
-				// target: "https://test.lexiaoya.cn",
+				// target: "https://kt.colexiu.com",
+				target: "https://test.lexiaoya.cn",
 				changeOrigin: true,
 				rewrite: (path) => path.replace(/^\/instrument/, ""),
 			},