🐛 Fix: i18n bug

This commit is contained in:
PiEgg
2023-01-07 20:50:59 +08:00
parent 66d8d714db
commit 911e34e98d
9 changed files with 36 additions and 17 deletions
-2
View File
@@ -60,7 +60,6 @@ const $route = useRoute()
const $router = useRouter()
const $configForm = ref<InstanceType<typeof ConfigForm> | null>(null)
type.value = $route.params.type as string
console.log('picbed type', $route.params.type)
onBeforeMount(() => {
sendToMain('getPicBedConfig', $route.params.type)
@@ -69,7 +68,6 @@ onBeforeMount(() => {
const handleConfirm = async () => {
const result = (await $configForm.value?.validate()) || false
console.log(result)
if (result !== false) {
await triggerRPC<void>(IRPCActionType.UPDATE_UPLOADER_CONFIG, type.value, result?._id, result)
const successNotification = new Notification($T('SETTINGS_RESULT'), {