mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2025-05-29 23:10:20 +09:00
1. 提取tools工具箱插件配置
This commit is contained in:
parent
ab755a8623
commit
0b59f69fa0
@ -6,6 +6,7 @@ import HttpHandler from '@/common/http/request.js'
|
||||
import {
|
||||
getCache
|
||||
} from '@/utils/storage.js'
|
||||
import HaloPluginsConfig from '@/config/plugins.config.js'
|
||||
|
||||
export default {
|
||||
/**
|
||||
@ -153,7 +154,7 @@ export default {
|
||||
checkPostVerifyCode: (verifyCode, postId) => {
|
||||
return HttpHandler.Get(`/apis/tools.muyin.site/v1alpha1/verificationCode/check?code=${verifyCode}`, null, {
|
||||
header: {
|
||||
'Authorization': 'Tools工具箱插件设置的认证token',
|
||||
'Authorization': HaloPluginsConfig.toolsPlugin.Authorization,
|
||||
'Wechat-Session-Id': uni.getStorageSync('openid'),
|
||||
'Post-Id': postId
|
||||
}
|
||||
@ -166,7 +167,7 @@ export default {
|
||||
getPostVerifyCode: () => {
|
||||
return HttpHandler.Get(`/apis/tools.muyin.site/v1alpha1/verificationCode/create`, null, {
|
||||
header: {
|
||||
'Authorization': 'Tools工具箱插件设置的认证token'
|
||||
'Authorization': HaloPluginsConfig.toolsPlugin.Authorization
|
||||
}
|
||||
})
|
||||
},
|
||||
|
@ -17,6 +17,12 @@ const PluginsConfig = Object.freeze({
|
||||
// 博客简介
|
||||
description: "",
|
||||
}
|
||||
},
|
||||
// tools工具箱插件配置
|
||||
toolsPlugin: {
|
||||
pluginId:"tools",
|
||||
enabled: true,
|
||||
Authorization: "Tools工具箱插件设置的认证token"
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user