|
|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<a-config-provider :locale="zh_CN"> |
|
|
<a-config-provider :locale="zh_CN"> |
|
|
<div class="d-flex flex-row flex-nowrap" id="app"> |
|
|
<div class="d-flex flex-row flex-nowrap" id="app"> |
|
|
<btn-con /> |
|
|
<!-- <btn-con /> --> |
|
|
<router-view class="flex-1 bg pa-3"></router-view> |
|
|
<router-view class="flex-1 bg pa-3"></router-view> |
|
|
</div> |
|
|
</div> |
|
|
</a-config-provider> |
|
|
</a-config-provider> |
|
|
@ -11,12 +11,12 @@ |
|
|
import { mapState, mapActions, mapMutations } from 'vuex'; |
|
|
import { mapState, mapActions, mapMutations } from 'vuex'; |
|
|
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN'; |
|
|
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN'; |
|
|
import BtnCon from 'components/BtnCom/BtnCon.vue'; |
|
|
import BtnCon from 'components/BtnCom/BtnCon.vue'; |
|
|
// |
|
|
// |
|
|
export default { |
|
|
export default { |
|
|
name: 'App', |
|
|
name: 'App', |
|
|
components: { BtnCon }, |
|
|
components: { BtnCon }, |
|
|
data() { |
|
|
data() { |
|
|
return {zh_CN,}; |
|
|
return { zh_CN }; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
computed: mapState(['anyringToken', 'ptProps']), |
|
|
computed: mapState(['anyringToken', 'ptProps']), |
|
|
@ -33,9 +33,9 @@ export default { |
|
|
|
|
|
|
|
|
created() { |
|
|
created() { |
|
|
// // 测试数据 |
|
|
// // 测试数据 |
|
|
const userId = '1218763410024566784'; |
|
|
// const userId = '1218763410024566784'; |
|
|
const params = { userId }; |
|
|
// const params = { userId }; |
|
|
this.getUserId(params); |
|
|
// this.getUserId(params); |
|
|
|
|
|
|
|
|
const that = this; |
|
|
const that = this; |
|
|
window.plugin = window.TallPlugin.init(); |
|
|
window.plugin = window.TallPlugin.init(); |
|
|
@ -43,7 +43,6 @@ export default { |
|
|
// created接受一个回调函数 created成功后调用 可选参数 |
|
|
// created接受一个回调函数 created成功后调用 可选参数 |
|
|
// 接受PT传过来的 插件id,项目id,角色id,任务id,userId |
|
|
// 接受PT传过来的 插件id,项目id,角色id,任务id,userId |
|
|
window.plugin.created(function(props) { |
|
|
window.plugin.created(function(props) { |
|
|
console.log('props: ', props); |
|
|
|
|
|
that.setPtProps(props); |
|
|
that.setPtProps(props); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|