liming 2 weken geleden
bovenliggende
commit
c7d3750206
2 gewijzigde bestanden met toevoegingen van 25 en 24 verwijderingen
  1. 5 4
      capacitor.config.ts
  2. 20 20
      src/App.vue

+ 5 - 4
capacitor.config.ts

@@ -1,7 +1,7 @@
 import { CapacitorConfig } from '@capacitor/cli';
-// import { updateVersion } from './scripts/sync-version';
+import { updateVersion } from './scripts/sync-version';
+
 
-// updateVersion()
 
 
 
@@ -38,8 +38,7 @@ const config: CapacitorConfig = {
   },
 
   // Android专属配置
-  android: { 
-    scheme: 'acc',
+  android: {  
     allowMixedContent: true,     // 允许混合HTTP/HTTPS内容
     useLegacyBridge: true,       // 使用旧版桥接(兼容性)
 
@@ -59,6 +58,8 @@ if (process.env.DAPP_BUILD != "1") {
     cleartext: true,          // 允许HTTP明文通信(仅开发环境)
     allowNavigation: ['*']    // 允许任意URL导航
   }
+}else{
+  updateVersion()
 }
 
 

+ 20 - 20
src/App.vue

@@ -62,27 +62,27 @@ onBeforeMount(async () => {
 onMounted(() => {
   
   // 0.5秒后执行
-  setTimeout(() => {
-     setupNotifications(2);
-  }, 500);
-  setTimeout(() => {
-     setupNotifications(3);
-  }, 500);
-   setTimeout(() => {
-     setupNotifications(4);
-  }, 500);
-   setTimeout(() => {
-     setupNotifications(5);
-  }, 500);
+  // setTimeout(() => {
+  //    setupNotifications(2);
+  // }, 500);
+  // setTimeout(() => {
+  //    setupNotifications(3);
+  // }, 500);
+  //  setTimeout(() => {
+  //    setupNotifications(4);
+  // }, 500);
+  //  setTimeout(() => {
+  //    setupNotifications(5);
+  // }, 500);
 
-   setTimeout(() => {
-     setupNotifications(5);
-  }, 2500);
-   setTimeout(() => {
-     setupNotifications(15);
-  }, 1500);
-  setupNotifications(5);
-  setupNotifications(6); 
+  //  setTimeout(() => {
+  //    setupNotifications(5);
+  // }, 2500);
+  //  setTimeout(() => {
+  //    setupNotifications(15);
+  // }, 1500);
+  // setupNotifications(5);
+  // setupNotifications(6); 
 });
 </script>