|
|
|
|
@ -196,6 +196,21 @@ const apiSaveClick = () => {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const apiResetClick = () => {
|
|
|
|
|
window.$box.confirm(
|
|
|
|
|
'确定要重置代理配置吗?',
|
|
|
|
|
'提示',
|
|
|
|
|
{
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
localStorage.setItem('APP_CONFIG', JSON.stringify(window.CONFIG_RESET_DATA))
|
|
|
|
|
window.location.reload()
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
@ -364,6 +379,7 @@ const apiSaveClick = () => {
|
|
|
|
|
</div>
|
|
|
|
|
<template #footer>
|
|
|
|
|
<div class="dialog-footer">
|
|
|
|
|
<el-button @click="apiResetClick()">重置</el-button>
|
|
|
|
|
<el-button @click="api_mana_show = false">关闭</el-button>
|
|
|
|
|
<el-button @click="apiSaveClick()" type="primary">
|
|
|
|
|
保存
|
|
|
|
|
|