Fix variable redeclaration error in system-settings.vue

This commit is contained in:
Fam Zheng 2025-11-25 23:55:37 +00:00
parent 94472f1b49
commit 4a9bceb4c8

View File

@ -54,15 +54,15 @@ export default {
async reload() { async reload() {
// Load verification models // Load verification models
try { try {
var r = await this.$root.api_get_all("/api/v1/verification-model/"); const models = await this.$root.api_get_all("/api/v1/verification-model/");
this.verification_models = r; this.verification_models = models;
} catch (e) { } catch (e) {
this.verification_models = []; this.verification_models = [];
} }
// Load default verification model - treat 404 as empty // Load default verification model - treat 404 as empty
try { try {
var r = await this.$root.api_get("/api/v1/global-config/?name=default_verification_model"); const r = await this.$root.api_get("/api/v1/global-config/?name=default_verification_model");
this.default_verification_model_id = r.data.value || ''; this.default_verification_model_id = r.data.value || '';
} catch (e) { } catch (e) {
// 404 or any other error - treat as empty/default // 404 or any other error - treat as empty/default