Commit cd300ccd authored by 郭志伟's avatar 郭志伟

feat(mpUrl): 接口联调完成

parent b0eb3b05
......@@ -6,7 +6,7 @@ export default {
return http.get(`${config.apiHost}/editor/get/${params.pageId}`);
},
getMpSchema(params) {
return http.post(`http://talos-vcc3.liangkebang.net/api/kdsp/ka/info/getShareMiniUrl`, params);
return http.post(`${config.kdspHost}/api/kdsp/ka/info/getShareMiniUrl`, params, { emulateJSON: true });
},
getWxConfig(url = window.location.href.split('#')[0]) {
return http.post(`${config.kdspHost}/api/kdsp/wx/mp/getJsapiSign`, {
......
......@@ -88,7 +88,7 @@ export default {
if (isH5Normal && EASY_ENV_IS_BROWSER) {
try {
const [schema] = await api.getMpSchema({
miniUrl: 'pages/webview',
miniUrl: 'pages/webview/webview',
params: `url=${encodeURIComponent(JSON.stringify(this.link))}`
});
this.mpSchema = schema;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment