fstarter 2.11.5 → 2.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fstarter",
3
3
  "description": "A Vue.js project",
4
- "version": "2.11.5",
4
+ "version": "2.11.6",
5
5
  "author": "han.zhang <zhanghan810810@163.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -1462,7 +1462,20 @@ nFqBB1zM586NpO+4hua/1Ol5OiqoQJ4iQinyDiA=
1462
1462
  reject(error);
1463
1463
  });
1464
1464
  })
1465
- }
1465
+ },
1466
+ /**
1467
+ * 切换环境
1468
+ */
1469
+ switchEnvironment() {
1470
+ return new Promise((resolve, reject) => {
1471
+ native.utils.switchEnvironment().then(res => {
1472
+ resolve(res);
1473
+ }).catch(error => {
1474
+ Toast.fail(`切换环境: ${error.message}`)
1475
+ reject(error);
1476
+ });
1477
+ })
1478
+ },
1466
1479
  };
1467
1480
 
1468
1481
  export default nativeUtils;