From 4885600ecc369aa2e30a65de8dd7a410f13c34df Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期一, 24 五月 2021 11:25:04 +0800
Subject: [PATCH] 解决app通信问题

---
 App.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/App.vue b/App.vue
index 72e029c..8ab926f 100644
--- a/App.vue
+++ b/App.vue
@@ -1,8 +1,13 @@
 <script>
+	import DB from 'db.js'
 	export default {
 		onLaunch: function() {
-			console.warn('褰撳墠缁勪欢浠呮敮鎸� uni_modules 鐩綍缁撴瀯 锛岃鍗囩骇 HBuilderX 鍒� 3.1.0 鐗堟湰浠ヤ笂锛�')
 			console.log('App Launch')
+			if(DB.isOpen() == false){
+				DB.openSqlite()
+			}
+			// DB.dropTable("warning_list")
+			DB.createTable('warning_list','id text UNIQUE, time text, date text, pos text, name text, warningLevel text, imgUrl text, unixTime INTEGER, isRead integer');
 		},
 		onShow: function() {
 			console.log('App Show')
@@ -14,5 +19,5 @@
 </script>
 
 <style>
-	/*姣忎釜椤甸潰鍏叡css */
+
 </style>

--
Gitblit v1.8.0