mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 06:38:13 -05:00
🐛 Fix: fix upload api copy error after changing to 0.0.0.0
This commit is contained in:
parent
54d289c8f1
commit
7e408082c7
@ -1746,7 +1746,7 @@ const logLevel = {
|
||||
|
||||
const server = ref({
|
||||
port: 36677,
|
||||
host: '127.0.0.1',
|
||||
host: '0.0.0.0',
|
||||
enable: true
|
||||
})
|
||||
|
||||
@ -1859,7 +1859,7 @@ async function initData () {
|
||||
mainWindowHeight.value = settings.mainWindowHeight || 800
|
||||
server.value = settings.server || {
|
||||
port: 36677,
|
||||
host: '127.0.0.1',
|
||||
host: '0.0.0.0',
|
||||
enable: true
|
||||
}
|
||||
advancedRename.value = config.buildIn?.rename || {
|
||||
@ -2305,7 +2305,7 @@ async function cancelServerSetting () {
|
||||
serverVisible.value = false
|
||||
server.value = await getConfig('settings.server') || {
|
||||
port: 36677,
|
||||
host: '127.0.0.1',
|
||||
host: '0.0.0.0',
|
||||
enable: true
|
||||
}
|
||||
}
|
||||
|
@ -238,7 +238,10 @@ async function handleCopyApi () {
|
||||
port: 36677,
|
||||
host: '127.0.0.1'
|
||||
}
|
||||
const { port, host } = serverConfig
|
||||
let { port, host } = serverConfig
|
||||
if (host === '0.0.0.0') {
|
||||
host = '127.0.0.1'
|
||||
}
|
||||
const uploader = await getConfig('uploader') as IStringKeyMap || {}
|
||||
const picBedConfigList = uploader[$route.params.type as string].configList || []
|
||||
const picBedConfig = picBedConfigList.find((item: IUploaderConfigListItem) => item._id === $route.params.configId)
|
||||
|
Loading…
Reference in New Issue
Block a user