From 7079a4e7e41fa803b226709e4ea393c849fd4ddf Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期三, 10 十一月 2021 13:31:54 +0800 Subject: [PATCH] update satoken 1.27.0 => 1.28.0 使用 jwt 插件代理 token 生成逻辑 --- ruoyi-ui/src/directive/index.js | 42 +++++++++++++++++++++--------------------- 1 files changed, 21 insertions(+), 21 deletions(-) diff --git a/ruoyi-ui/src/directive/index.js b/ruoyi-ui/src/directive/index.js index 030fd4f..5801640 100644 --- a/ruoyi-ui/src/directive/index.js +++ b/ruoyi-ui/src/directive/index.js @@ -1,21 +1,21 @@ -import hasRole from './permission/hasRole' -import hasPermi from './permission/hasPermi' -import dialogDrag from './dialog/drag' -import dialogDragWidth from './dialog/dragWidth' -import dialogDragHeight from './dialog/dragHeight' - -const install = function(Vue) { - Vue.directive('hasRole', hasRole) - Vue.directive('hasPermi', hasPermi) - Vue.directive('dialogDrag', dialogDrag) - Vue.directive('dialogDragWidth', dialogDragWidth) - Vue.directive('dialogDragHeight', dialogDragHeight) -} - -if (window.Vue) { - window['hasRole'] = hasRole - window['hasPermi'] = hasPermi - Vue.use(install); // eslint-disable-line -} - -export default install +import hasRole from './permission/hasRole' +import hasPermi from './permission/hasPermi' +import dialogDrag from './dialog/drag' +import dialogDragWidth from './dialog/dragWidth' +import dialogDragHeight from './dialog/dragHeight' + +const install = function(Vue) { + Vue.directive('hasRole', hasRole) + Vue.directive('hasPermi', hasPermi) + Vue.directive('dialogDrag', dialogDrag) + Vue.directive('dialogDragWidth', dialogDragWidth) + Vue.directive('dialogDragHeight', dialogDragHeight) +} + +if (window.Vue) { + window['hasRole'] = hasRole + window['hasPermi'] = hasPermi + Vue.use(install); // eslint-disable-line +} + +export default install -- Gitblit v1.9.3