revert: 混入全局数据
This commit is contained in:
parent
fb09ac51dd
commit
21fd8d2c26
|
@ -29,7 +29,6 @@ import formCreate from "@form-create/element-ui"
|
||||||
import mavonEditor from 'mavon-editor'
|
import mavonEditor from 'mavon-editor'
|
||||||
import 'mavon-editor/dist/css/index.css'
|
import 'mavon-editor/dist/css/index.css'
|
||||||
import 'element-ui/lib/theme-chalk/display.css';
|
import 'element-ui/lib/theme-chalk/display.css';
|
||||||
import mixin from '../mixin'
|
|
||||||
Vue.use(mavonEditor)
|
Vue.use(mavonEditor)
|
||||||
|
|
||||||
Vue.use(vueMinderEditor)
|
Vue.use(vueMinderEditor)
|
||||||
|
@ -57,8 +56,6 @@ Vue.use(VueFab);
|
||||||
Vue.use(JSONPathPicker);
|
Vue.use(JSONPathPicker);
|
||||||
Vue.use(VueClipboard)
|
Vue.use(VueClipboard)
|
||||||
|
|
||||||
Vue.mixin(mixin)
|
|
||||||
|
|
||||||
// v-permission
|
// v-permission
|
||||||
Vue.directive('permission', permission);
|
Vue.directive('permission', permission);
|
||||||
|
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
import {PROJECT_ID, TokenKey, WORKSPACE_ID} from "@/common/js/constants";
|
|
||||||
|
|
||||||
const mixin = {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
msCurrentProjectId: sessionStorage.getItem(PROJECT_ID),
|
|
||||||
msCurrentWorkspaceId: sessionStorage.getItem(WORKSPACE_ID),
|
|
||||||
msCurrentUser: JSON.parse(localStorage.getItem(TokenKey)),
|
|
||||||
msCurrentUserId: JSON.parse(localStorage.getItem(TokenKey)).id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default mixin
|
|
Loading…
Reference in New Issue