Commit 99d40f0a by 胡悦

Merge branch 'v1.0.3'

2 parents 9bc8bb13 4734a143
......@@ -15,6 +15,7 @@
"glsx-common": "^1.4.6",
"glsx-components": "^1.3.6",
"lodash": "^4.17.21",
"qrcodejs2": "^0.0.2",
"vue": "^2.6.10",
"vue-amap": "^0.5.10",
"vue-router": "^3.1.3",
......
......@@ -31,7 +31,7 @@ export default {
}
#app {
background: #F4F5FA;
padding: 0px 20px 20px 40px;
padding: 0px 20px 20px 20px;
position: absolute;
box-sizing: border-box;
width: 100%;
......
......@@ -74,11 +74,24 @@ const getSecret = params => {
sign: true
})
}
const getSuccess = params => {
params.method = 'scrm.api.work.wechat.config.agent.success'
params.sessionId = sessionId
return http_config({
url: '/rop-scrm-wechat/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
getAccess,
getStatus,
getCheckStatus,
getQrcode,
getReportStatus,
getSecret
getSecret,
getSuccess
}
\ No newline at end of file
......@@ -8,8 +8,15 @@ VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
function getRoutes(routesData) {
return routesData.reduce((routes, route) => {
routes.push({ ...route, component: () => import('@/views' + route.compath + '.vue') })
return routesData.reduce( (routes, route) => {
// let status = await Vue.prototype.$apis.ww.getStatus({})
// console.log(status)
routes.push({
...route,
component: () => {
return import('@/views' + route.compath + '.vue')
}
})
return routes
}, [])
}
......
......@@ -69,6 +69,18 @@ const staticRoutes = Object.freeze([{
path: '/baseInfo/relevance',
meta: {},
component: resolve => require([`@/views/baseInfo/relevance.vue`], resolve)
},
{
name: 'EnterpriseWechat',
path: '/enterpriseWechat/index',
component: resolve => require([`@/views/enterpriseWechat/index.vue`], resolve),
meta: {}
},
{
name: 'FollowUp',
path: '/followUp/index',
component: resolve => require([`@/views/followUp/index.vue`], resolve),
meta: {}
}
])
export default staticRoutes
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!