mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2025-02-20 20:21:38 +01:00
perf: ♻️ Configure Incompatible Handling Mechanism
This commit is contained in:
parent
517091a5ca
commit
c0e6a01544
@ -209,7 +209,7 @@ export default {
|
||||
handleRefresh() {
|
||||
this.getDeviceData({ resetResolve: true })
|
||||
},
|
||||
async handleReset(depType = 'scrcpy') {
|
||||
async handleReset() {
|
||||
try {
|
||||
await this.$confirm(
|
||||
`
|
||||
@ -226,7 +226,7 @@ export default {
|
||||
},
|
||||
)
|
||||
|
||||
this.$store.preference.resetDeps(depType)
|
||||
this.$store.preference.reset()
|
||||
|
||||
this.$root.reRender('Preference')
|
||||
|
||||
@ -293,6 +293,7 @@ export default {
|
||||
if (error.message) {
|
||||
this.$message.warning(error.message)
|
||||
}
|
||||
this.handleReset()
|
||||
}
|
||||
row.$recordLoading = false
|
||||
},
|
||||
@ -390,7 +391,7 @@ export default {
|
||||
this.deviceList = []
|
||||
|
||||
if (resetResolve) {
|
||||
this.handleReset('adb')
|
||||
this.handleReset()
|
||||
}
|
||||
}
|
||||
this.loading = false
|
||||
|
@ -57,9 +57,9 @@
|
||||
"device.wireless.pair.code.placeholder": "Input pair code",
|
||||
|
||||
"device.reset.title": "Operation Failed",
|
||||
"device.reset.reasons[0]": "This is usually caused by incompatible cached dependencies after updating Escrcpy. Reset dependencies?",
|
||||
"device.reset.reasons[1]": "Note: Dependencies will be cleared after reset, please backup first.",
|
||||
"device.reset.confirm": "Reset Dependencies",
|
||||
"device.reset.reasons[0]": "Typically, this may be caused by incompatible configurations. Do you want to reset preferences?",
|
||||
"device.reset.reasons[1]": "Note: After resetting, any previously saved configurations will be cleared, so it is recommended to back up your configurations before performing the reset operation.",
|
||||
"device.reset.confirm": "Reset Preferences",
|
||||
"device.reset.cancel": "@:common.cancel",
|
||||
"device.reset.success": "Success, please try again",
|
||||
|
||||
|
@ -57,9 +57,9 @@
|
||||
"device.wireless.pair.code.placeholder": "请输入配对码",
|
||||
|
||||
"device.reset.title": "操作失败",
|
||||
"device.reset.reasons[0]": "通常情况下,这可能是因为更新 Escrcpy 后,缓存的依赖配置不兼容所导致的,是否重置依赖配置?",
|
||||
"device.reset.reasons[1]": "注意:重置后,之前保存的依赖配置将会被清除,因此建议在执行重置操作之前备份您的配置。",
|
||||
"device.reset.confirm": "重置依赖配置",
|
||||
"device.reset.reasons[0]": "通常情况下,这可能是配置不兼容所导致的,是否重置偏好设置?",
|
||||
"device.reset.reasons[1]": "注意:重置后,之前保存的配置将会被清除,因此建议在执行重置操作之前备份您的配置。",
|
||||
"device.reset.confirm": "重置偏好设置",
|
||||
"device.reset.cancel": "@:common.cancel",
|
||||
"device.reset.success": "操作成功,请重新尝试。",
|
||||
"device.refresh.name": "刷新设备",
|
||||
|
@ -90,7 +90,7 @@ export const usePreferenceStore = defineStore({
|
||||
},
|
||||
reset(scope) {
|
||||
if (!scope) {
|
||||
window.appStore.reset()
|
||||
window.appStore.clear()
|
||||
}
|
||||
else {
|
||||
const fields = getTopFields()
|
||||
|
Loading…
x
Reference in New Issue
Block a user