diff --git a/App.vue b/App.vue
index 21114c2..ee4b590 100644
--- a/App.vue
+++ b/App.vue
@@ -2,15 +2,18 @@
import dbStore from "@/store/db";
import accountStore from "@/store/account";
import { globalUnreadListenerManager } from "@/utils/global-unread-listener.js";
+import { initApiContextFromAppOptions } from "@/utils/api-base-config";
export default {
- async onLaunch() {
+ async onLaunch(options) {
+ initApiContextFromAppOptions(options);
console.log("App Launch: ");
// 获取 openId 并初始化 IM
// await this.initIMOnLaunch();
},
- onShow: function () {
+ onShow: function (options) {
+ initApiContextFromAppOptions(options);
const db = dbStore();
if (db && typeof db.getJobs === "function") {
db.getJobs();
diff --git a/components/form-template/index.vue b/components/form-template/index.vue
index 647901e..7b47c4f 100644
--- a/components/form-template/index.vue
+++ b/components/form-template/index.vue
@@ -1,13 +1,14 @@
+ :disableChange="isDisableChange(item)" @change="change" @addRule="addRule" />