Browse Source

工作日志路径配置

feature/syp_points
ZhaoTongYao 5 years ago
parent
commit
36470560cb
  1. 2
      public/index.html
  2. 2
      src/views/modules/worklog/worklog.vue

2
public/index.html

@ -31,6 +31,8 @@
window.SITE_CONFIG['dynamicRoutes'] = [] // 动态路由列表
window.SITE_CONFIG['dynamicMenuRoutes'] = [] // 动态(菜单)路由列表
window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false // 动态(菜单)路由是否已经添加的状态标示(用于判断是否需要重新拉取数据并进行动态添加操作)
window.SITE_CONFIG['workLogURL'] = 'https://epdc-jinan-test.elinkservice.cn/plugin-wrf' //工作日志引用外链地址
</script>
<!-- 开发环境 -->

2
src/views/modules/worklog/worklog.vue

@ -15,7 +15,7 @@ export default {
created () {
const _token = Cookies.get('token') || localStorage.getItem('token')
const _customerId = Cookies.get('customerId') || localStorage.getItem('customerId')
this.url = `https://epdc-jinan-test.elinkservice.cn/plugin-wrf/#/NoteTaking?token=${_token}&customerId=${_customerId}`
this.url = `${window.SITE_CONFIG['workLogURL']}/#/NoteTaking?token=${_token}&customerId=${_customerId}`
}
}
</script>

Loading…
Cancel
Save