mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-01 21:39:42 +08:00
🔨 Refactor(custom): change default temp dir to system temp dir path
ISSUES CLOSED: #112
This commit is contained in:
@@ -194,18 +194,6 @@
|
||||
{{ $T('SETTINGS_CLICK_TO_SET') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$T('SETTINGS_GENERAL_TEMP_DIR_PATH')"
|
||||
>
|
||||
<el-button
|
||||
type="primary"
|
||||
round
|
||||
size="small"
|
||||
@click="handleTempDirPath"
|
||||
>
|
||||
{{ $T('SETTINGS_CLICK_TO_SET') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-row>
|
||||
</el-col>
|
||||
@@ -1737,8 +1725,7 @@ const form = reactive<ISettingForm>({
|
||||
yourlsSignature: '',
|
||||
deleteLocalFile: false,
|
||||
serverKey: '',
|
||||
aesPassword: '',
|
||||
tempDirPath: ''
|
||||
aesPassword: ''
|
||||
})
|
||||
|
||||
const languageList = i18nManager.languageList.map(item => ({
|
||||
@@ -1903,7 +1890,6 @@ async function initData () {
|
||||
form.deleteLocalFile = settings.deleteLocalFile || false
|
||||
form.serverKey = settings.serverKey || ''
|
||||
form.aesPassword = settings.aesPassword || 'PicList-aesPassword'
|
||||
form.tempDirPath = settings.tempDirPath || ''
|
||||
currentLanguage.value = settings.language ?? 'zh-CN'
|
||||
currentStartMode.value = settings.startMode || 'quiet'
|
||||
customLink.value = settings.customLink || ''
|
||||
@@ -2209,15 +2195,6 @@ function handleMiniWindowOntop (val: ICheckBoxValueType) {
|
||||
$message.info($T('TIPS_NEED_RELOAD'))
|
||||
}
|
||||
|
||||
async function handleTempDirPath (evt: Event) {
|
||||
const result = await invokeToMain('openDirectorySelectDialog')
|
||||
if (result) {
|
||||
form.tempDirPath = result
|
||||
saveConfig('settings.tempDirPath', form.tempDirPath)
|
||||
$message.info($T('TIPS_NEED_RELOAD'))
|
||||
}
|
||||
}
|
||||
|
||||
async function handleMiniIconPath (evt: Event) {
|
||||
const result = await invokeToMain('openFileSelectDialog')
|
||||
if (result && result[0]) {
|
||||
|
||||
Reference in New Issue
Block a user