|
@@ -1,7 +1,7 @@
|
|
|
import wx from 'jweixin-module';
|
|
|
|
|
|
// import Vue from 'vue';
|
|
|
-import wxApi from '~/api/wx/index.js';
|
|
|
+import { getConfig } from '~/api/wx/index.js';
|
|
|
|
|
|
export default function (c, i) {
|
|
|
// Vue.config.optionMergeStrategies.wxReady = function (toVal, fromVal) {
|
|
@@ -32,7 +32,7 @@ export default function (c, i) {
|
|
|
// // },
|
|
|
// // });
|
|
|
// }
|
|
|
- const res = await wxApi(c).getConfig(location.href);
|
|
|
+ const res = await getConfig(c, location.href);
|
|
|
await new Promise((resolve, reject) => {
|
|
|
wx.config({
|
|
|
debug: true, // 开启调试模式,调用的所有 api 的返回值会在客户端 alert 出来,若要查看传入的参数,可以在 pc 端打开,参数信息会通过 log 打出,仅在 pc 端时才会打印。
|