diff --git a/package.json b/package.json index bf153c3..e3e8780 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "file-saver": "2.0.5", "fuse.js": "6.4.3", "highlight.js": "9.18.5", + "js-base64": "^3.7.7", "js-beautify": "1.13.0", "js-cookie": "3.0.1", "jsencrypt": "3.0.0-rc.1", diff --git a/src/main.js b/src/main.js index f68839e..26698c3 100644 --- a/src/main.js +++ b/src/main.js @@ -38,6 +38,7 @@ import VueMeta from 'vue-meta' // 字典数据组件 import DictData from '@/components/DictData' import Print from 'vue-print-nb' +import { Base64 } from 'js-base64' // 全局方法挂载 Vue.prototype.getDicts = getDicts Vue.prototype.getConfigKey = getConfigKey @@ -48,7 +49,7 @@ Vue.prototype.selectDictLabel = selectDictLabel Vue.prototype.selectDictLabels = selectDictLabels Vue.prototype.download = download Vue.prototype.handleTree = handleTree - +Vue.prototype.$Base64 = Base64; // 全局组件挂载 Vue.component('DictTag', DictTag) Vue.component('Pagination', Pagination) diff --git a/src/utils/request.js b/src/utils/request.js index ffb0d21..1192669 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -6,7 +6,7 @@ import errorCode from '@/utils/errorCode' import { tansParams, blobValidate } from "@/utils/ruoyi"; import cache from '@/plugins/cache' import { saveAs } from 'file-saver' - +import { Base64 } from 'js-base64' let downloadLoadingInstance; // 是否显示重新登录 export let isRelogin = { show: false }; diff --git a/src/views/abuwx/wxuser/information.vue b/src/views/abuwx/wxuser/information.vue index 5264e91..7f04540 100644 --- a/src/views/abuwx/wxuser/information.vue +++ b/src/views/abuwx/wxuser/information.vue @@ -18,14 +18,14 @@ - - - - - - - - + - +