Colintao
Colintao
  • 发布:2020-08-12 16:54
  • 更新:2020-08-12 16:54
  • 阅读:1861

'plus' is not defined (no-undef) 怎么去除app 真机调试警告

分类:Native.js

WARNING: Module Warning (from ./node_modules/eslint-loader/index.js):
16:52:15.796 error: 'plus' is not defined (no-undef) at src\utils\set_app_permission.js:11:7:
16:52:15.802 9 | let system = uni.getSystemInfoSync(); // 获取系统信息
16:52:15.803 10 | if (system.platform == 'ios') { //IOS
16:52:15.809 > 11 | plus.runtime.openURL("app-settings://");
16:52:15.809 | ^
16:52:15.816 12 | } else if (system.platform == 'android') { //安卓
16:52:15.816 13 | let main = plus.android.runtimeMainActivity();
16:52:15.825 14 | var Intent = plus.android.importClass('android.content.Intent');

2020-08-12 16:54 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复