liushengqiang 1 năm trước cách đây
mục cha
commit
eb70594142

+ 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/, ""),
 			},