liushengqiang 1 anno fa
parent
commit
bf9f6622c6

File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-f80b3623.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-legacy-d97ef399.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/instrument-acea3be3.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/instrument-legacy-26260c65.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/polyfills-legacy-3c0b868b.js


+ 1 - 1
dist/colexiu.html

@@ -55,7 +55,7 @@
   <img id="loading" class="show" src="./loading.svg" alt="loading" />
   
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-a61a5c9f.js"></script>
+  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-3c0b868b.js"></script>
   <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/colexiu-legacy-61d6d71a.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
 </body>
 

+ 1 - 1
dist/index.html

@@ -96,7 +96,7 @@
   <img id="loading" class="show" src="./loading.svg" alt="loading" />
   
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-a61a5c9f.js"></script>
+  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-3c0b868b.js"></script>
   <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-704e96d2.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
 </body>
 

+ 3 - 3
dist/instrument.html

@@ -36,7 +36,7 @@
       },
     })
   </script>
-  <script type="module" crossorigin src="./assets/instrument-73fd6dfa.js"></script>
+  <script type="module" crossorigin src="./assets/instrument-acea3be3.js"></script>
   <link rel="modulepreload" crossorigin href="./assets/index-d11799b4.js">
   <link rel="modulepreload" crossorigin href="./assets/index-f96d949b.js">
   <link rel="modulepreload" crossorigin href="./assets/vue3-lottie.es-2ecb9e88.js">
@@ -54,8 +54,8 @@
   <img id="loading" class="show" src="./loading.svg" alt="loading" />
   
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-a61a5c9f.js"></script>
-  <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/instrument-legacy-6560663b.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-3c0b868b.js"></script>
+  <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/instrument-legacy-26260c65.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
 </body>
 
 </html>

+ 1 - 1
dist/orchestra.html

@@ -69,7 +69,7 @@
   </script>
   
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-a61a5c9f.js"></script>
+  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-3c0b868b.js"></script>
   <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/orchestra-legacy-94f57ba0.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
 </body>
 

+ 1 - 1
dist/report-share.html

@@ -49,7 +49,7 @@
   </script>
   
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-a61a5c9f.js"></script>
+  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-3c0b868b.js"></script>
   <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/report-share-legacy-289f4182.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
 </body>
 

+ 13 - 9
src/page-instrument/App.tsx

@@ -11,7 +11,7 @@ import { employeeQueryUserInfo, studentQueryUserInfo, teacherQueryUserInfo } fro
 export default defineComponent({
 	name: "App",
 	setup() {
-		const query: any = getQuery()
+		const query: any = getQuery();
 		/** 获取用户信息 */
 		const getUserInfo = async () => {
 			if (storeData.platformType === "WEB") {
@@ -31,21 +31,25 @@ export default defineComponent({
 			if (query.Authorization) {
 				setToken(query.Authorization);
 			}
-			if (!getToken()){
-				const token = location.origin.includes('kt.colexiu.com') ? 'bearer 3527f6b3-9953-41de-80f0-334dec910eac' : 'bearer 529d1359-20c6-4ea2-b2ba-2694cdeda8a4'
-				setToken(token)
+			if (!getToken()) {
+				const token = /(dev\.kt\.colexiu\.com|192|localhost)/gi.test(location.origin)
+					? "bearer 529d1359-20c6-4ea2-b2ba-2694cdeda8a4"
+					: "bearer 3527f6b3-9953-41de-80f0-334dec910eac";
+				setToken(token);
 			}
 			setUser();
-			setBehaviorId(getRandomKey())
+			setBehaviorId(getRandomKey());
 		});
 		onMounted(() => {
-			const _loading = document.getElementById("loading")
-			_loading && (document.body.removeChild(_loading))
-		})
+			const _loading = document.getElementById("loading");
+			_loading && document.body.removeChild(_loading);
+		});
 
 		const inited = computed(() => {
 			return storeData.status === "login";
 		});
-		return () => <>{storeData.status === "error" ? <TheError /> : inited.value ? <RouterView /> : null}</>;
+		return () => (
+			<>{storeData.status === "error" ? <TheError /> : inited.value ? <RouterView /> : null}</>
+		);
 	},
 });

Some files were not shown because too many files changed in this diff