Browse Source

mobile deploy

RainMan 2 years ago
parent
commit
fbb921a33f

+ 3 - 4
mobile-src/src/services/api.service.ts

@@ -58,7 +58,6 @@ export default class ApiService implements ILogerService {
                                 this.consoleLog(
                                 this.consoleLog(
                                     'debug',
                                     'debug',
                                     'Response 200',
                                     'Response 200',
-                                    response?.request?.status,
                                     response?.request?.responseURL,
                                     response?.request?.responseURL,
                                     response?.data
                                     response?.data
                                 );
                                 );
@@ -98,12 +97,12 @@ export default class ApiService implements ILogerService {
                         // The request was made but no response was received
                         // The request was made but no response was received
                         // `error.request` is an instance of XMLHttpRequest in the browser and an instance of
                         // `error.request` is an instance of XMLHttpRequest in the browser and an instance of
                         // http.ClientRequest in node.js
                         // http.ClientRequest in node.js
-                        this.consoleLog( 'debug','Error Request', error.request);
+                        this.consoleLog( 'debug','Error Request', "" + error.request);
                     } else {
                     } else {
                         // Something happened in setting up the request that triggered an Error
                         // Something happened in setting up the request that triggered an Error
-                        this.consoleLog( 'debug','Error Message', error.message);
+                        this.consoleLog( 'debug','Error Message', "" + error.message);
                     }
                     }
-                    this.consoleLog( 'debug','Error Config', error.config);
+                    this.consoleLog( 'debug','Error Config', "" + error.config);
                     reject(error.response.data);
                     reject(error.response.data);
                 });
                 });
         });
         });

+ 6 - 6
mobile-src/src/services/shared.service.ts

@@ -188,9 +188,9 @@ export default class SharedService implements ILogerService {
                 installType = 'pc';
                 installType = 'pc';
             }
             }
         }
         }
-        this.consoleLog('debug', 'referrer', document.referrer);
-        this.consoleLog('debug', 'isStandalone', isStandalone, (window?.navigator as any)?.standalone);
-        this.consoleLog('debug', 'userAgent', window?.navigator?.userAgent);
+        this.consoleLog('debug', 'referrer', "" + document.referrer);
+        this.consoleLog('debug', 'isStandalone', isStandalone, "" + (window?.navigator as any)?.standalone);
+        this.consoleLog('debug', 'userAgent', "" + window?.navigator?.userAgent);
         switch (installType) {
         switch (installType) {
             case 'pc':
             case 'pc':
                 this._appConf.deferredPrompt = 'pc';
                 this._appConf.deferredPrompt = 'pc';
@@ -484,7 +484,7 @@ export default class SharedService implements ILogerService {
                     pushKey: loginInfo.pushKey,
                     pushKey: loginInfo.pushKey,
                 })
                 })
                 .then((result) => {
                 .then((result) => {
-                    this.consoleLog('debug', 'Info Changed', result);
+                    this.consoleLog('debug', 'Info Changed');
                 });
                 });
             return true;
             return true;
         } else {
         } else {
@@ -545,10 +545,10 @@ export default class SharedService implements ILogerService {
                         }
                         }
                     })
                     })
                     .catch((err) => {
                     .catch((err) => {
-                        this.consoleLog('debug', 'Messaging Error', err);
+                        this.consoleLog('debug', 'Messaging Error');
                     });
                     });
                 onMessage(messaging, (payload: any) => {
                 onMessage(messaging, (payload: any) => {
-                    this.consoleLog('debug', 'onMessage', payload);
+                    this.consoleLog('debug', 'onMessage');
                 });
                 });
             }
             }
         } else {
         } else {

+ 4 - 4
mobile-src/src/views/components/SgcConsole.vue

@@ -4,7 +4,7 @@
 			<ion-icon slot="start" :icon="Icon.trashBin"></ion-icon>
 			<ion-icon slot="start" :icon="Icon.trashBin"></ion-icon>
 			{{ $t('BTN_CLEAR') }}
 			{{ $t('BTN_CLEAR') }}
 		</ion-button>
 		</ion-button>
-		<ion-item v-for="(log, i) in dataList.reverse()" :key="i" @click="toggleLog(log)">
+		<ion-item v-for="(log, i) in dataList" :key="i" @click="toggleLog(log)">
 			<ion-label>
 			<ion-label>
 				<h3>
 				<h3>
 					<ion-badge :color="log.type === 'error' ? 'error' : 'primary'"> {{ log.type }} </ion-badge>
 					<ion-badge :color="log.type === 'error' ? 'error' : 'primary'"> {{ log.type }} </ion-badge>
@@ -60,9 +60,9 @@ export default defineComponent({
 			}
 			}
 		},
 		},
 		consoleLog(type: ConsoleLogType, title: string, ...objs: any[]) {
 		consoleLog(type: ConsoleLogType, title: string, ...objs: any[]) {
-			this.dataList.push({ type: type, title: title, datas: [],  text : objs?.join(', ') , showDetail: false });
-			if (this.dataList.length > 30) {
-				this.dataList.shift();
+			this.dataList.unshift({ type: type, title: title, datas: objs,  text : objs?.join(', ') , showDetail: false });
+			if (this.dataList.length > 60) {
+				this.dataList.pop();
 			}
 			}
 		},
 		},
 		toggleLog(log: ConsoleLogVo) {
 		toggleLog(log: ConsoleLogVo) {

File diff suppressed because it is too large
+ 0 - 0
src/main/webapp/mobile/index.html


File diff suppressed because it is too large
+ 0 - 0
src/main/webapp/mobile/js/app.a787f709.js


File diff suppressed because it is too large
+ 0 - 0
src/main/webapp/mobile/js/app.a787f709.js.map


File diff suppressed because it is too large
+ 0 - 0
src/main/webapp/mobile/js/app.de0dadac.js


File diff suppressed because it is too large
+ 0 - 0
src/main/webapp/mobile/js/app.de0dadac.js.map


File diff suppressed because it is too large
+ 0 - 0
src/main/webapp/mobile/service-worker.js


File diff suppressed because it is too large
+ 0 - 0
src/main/webapp/mobile/service-worker.js.map


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