matrix_components 2.0.337 → 2.0.339
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -485,14 +485,16 @@ const encrypArrs = getEncryptSm2(publicKey, ["xxx", "yyy"], isAdd04=false, ciphe
|
|
|
485
485
|
// 1. main.ts中引入, 并指定app.config.globalProperties.$BaseUrl全局请求地址
|
|
486
486
|
import NsComponents from 'matrix_components'
|
|
487
487
|
|
|
488
|
-
// 请求地址的baseUrl
|
|
488
|
+
// 请求地址的baseUrl,建议在app.use(NsComponents)之前设置
|
|
489
489
|
app.config.globalProperties.$BaseUrl = 'http://请求ip:端口/'
|
|
490
|
+
// 图片、文件请求地址的ImageBaseUrl,建议在app.use(NsComponents)之前设置
|
|
491
|
+
app.config.globalProperties.$ImageBaseUrl = 'http://请求ip:端口/'
|
|
490
492
|
app.use(NsComponents)
|
|
491
493
|
|
|
492
494
|
// 【可选】401无权显示回调
|
|
493
495
|
app.config.globalProperties.$LogoutCallback = logoutHandler // 无权显示回调
|
|
494
496
|
// 【可选】请求添加的token头的key,默认为satoken。token的key和value需要在外部项目中自己设置
|
|
495
|
-
app.config.globalProperties.$
|
|
497
|
+
app.config.globalProperties.$TokenName = "tokenName"
|
|
496
498
|
app.config.globalProperties.$TonkenValue = "xxxx";
|
|
497
499
|
|
|
498
500
|
// 2. xx.vue / xx.ts 调用获取get、post请求
|