mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-13 04:02:56 +08:00
修改获取配置文件接口,初始化系统配置
This commit is contained in:
@@ -26,7 +26,7 @@ const Diff = () => {
|
||||
|
||||
const getConfig = () => {
|
||||
request
|
||||
.get(`${config.apiPrefix}configs/${encodeURIComponent(current)}`)
|
||||
.get(`${config.apiPrefix}configs/detail?path=${encodeURIComponent(current)}`)
|
||||
.then(({ code, data }) => {
|
||||
if (code === 200) {
|
||||
setCurrentValue(data);
|
||||
@@ -36,7 +36,7 @@ const Diff = () => {
|
||||
|
||||
const getSample = () => {
|
||||
request
|
||||
.get(`${config.apiPrefix}configs/${encodeURIComponent(origin)}`)
|
||||
.get(`${config.apiPrefix}configs/detail?path=${encodeURIComponent(origin)}`)
|
||||
.then(({ code, data }) => {
|
||||
if (code === 200) {
|
||||
setOriginValue(data);
|
||||
|
||||
Reference in New Issue
Block a user