瀏覽代碼

开启通知权限

qukaidi 4 年之前
父節點
當前提交
80f0b7d6df
共有 3 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      config.xml
  2. 1 0
      luntai/index.html
  3. 1 0
      luntai/login.html

+ 1 - 0
config.xml

@@ -19,6 +19,7 @@
 	<preference name="statusBarAppearance" value="true"/>
 	<permission name="readPhoneState"/>
 	<permission name="camera"/>
+	<permission name="notification"/>
 	<permission name="record"/>
 	<permission name="location"/>
 	<permission name="fileSystem"/>

+ 1 - 0
luntai/index.html

@@ -233,6 +233,7 @@
 						//
 						// }, false);
 					}
+					this.ifHasPrme('notification')
 				},
 				//  跳转页面
 				setMainid1: function () {

+ 1 - 0
luntai/login.html

@@ -121,6 +121,7 @@
 			methods: {
 				init: function () {
 					this.getcheckVersion()
+					this.ifHasPrme('notification')
 				},
 				//  检查更新
 				getcheckVersion: function () {