Commit 99025ad6 authored by 王's avatar

公众号配置

parent 7c9f9441
......@@ -13,8 +13,8 @@ module.exports = {
//本地代理设置
proxyTable: {
'/api': {
target: 'http://local.base-api.sing.com', // 接口的域名
// target: 'wechat.test.singsingenglish.com',
target: 'http://wechat.test.singsingenglish.com', // 接口的域名
// target: 'wechat.test.singsingenglish.com http://local.base-api.sing.com',
changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
}
},
......
This diff is collapsed.
......@@ -183,4 +183,12 @@ const getBoxListUrl = `${_baseUrl}api/admin/item/box/list/`;
export const getBoxListApi = function (id) {
return Vue.prototype.$fetch(`${getBoxListUrl}${id}`)
};
// 获取公众号菜单
const getPublicMenuUrl = `${_baseUrl}api/admin/open/menu`;
export const getPublicMenuApi = function (id) {
return Vue.prototype.$fetch(getPublicMenuUrl)
};
// 添加公众号菜单
export const savePublicMenuApi = function (json) {
return Vue.prototype.$post(getPublicMenuUrl,json)
};
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