|
|
|
@ -124,6 +124,15 @@ ___CSS_LOADER_EXPORT___.push([module.id, `
@@ -124,6 +124,15 @@ ___CSS_LOADER_EXPORT___.push([module.id, `
|
|
|
|
|
transform: translateX(26px); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* 设置描述文字 */ |
|
|
|
|
.setting-description[data-v-a5c10072] { |
|
|
|
|
font-size: 12px; |
|
|
|
|
color: var(--text-secondary); |
|
|
|
|
margin-top: 8px; |
|
|
|
|
line-height: 1.4; |
|
|
|
|
opacity: 0.8; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* 操作按钮 */ |
|
|
|
|
.settings-actions[data-v-a5c10072] { |
|
|
|
|
display: flex; |
|
|
|
@ -236,7 +245,7 @@ __webpack_require__.r(__webpack_exports__);
@@ -236,7 +245,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
retryCount: 3, |
|
|
|
|
|
|
|
|
|
// 用户设置
|
|
|
|
|
autoLogin: false, |
|
|
|
|
keepLoginOnClose: false, |
|
|
|
|
rememberPassword: false, |
|
|
|
|
sessionTimeout: 30, |
|
|
|
|
|
|
|
|
@ -333,7 +342,7 @@ __webpack_require__.r(__webpack_exports__);
@@ -333,7 +342,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
// 显示保存成功提示
|
|
|
|
|
showToastMessage('success', '保存成功', '用户设置已成功保存') |
|
|
|
|
|
|
|
|
|
console.log('用户设置已保存') |
|
|
|
|
|
|
|
|
|
} catch (error) { |
|
|
|
|
console.error('保存用户设置失败:', error) |
|
|
|
|
// 显示保存失败提示
|
|
|
|
@ -410,37 +419,36 @@ const _hoisted_11 = { class: "setting-item" }
@@ -410,37 +419,36 @@ const _hoisted_11 = { class: "setting-item" }
|
|
|
|
|
const _hoisted_12 = { class: "toggle-switch" } |
|
|
|
|
const _hoisted_13 = { class: "setting-item" } |
|
|
|
|
const _hoisted_14 = { class: "toggle-switch" } |
|
|
|
|
const _hoisted_15 = { class: "setting-item" } |
|
|
|
|
const _hoisted_16 = { class: "settings-section" } |
|
|
|
|
const _hoisted_17 = { class: "setting-item" } |
|
|
|
|
const _hoisted_18 = { class: "toggle-switch" } |
|
|
|
|
const _hoisted_19 = { class: "setting-item" } |
|
|
|
|
const _hoisted_20 = { class: "toggle-switch" } |
|
|
|
|
const _hoisted_21 = { class: "setting-item" } |
|
|
|
|
const _hoisted_22 = { class: "settings-section" } |
|
|
|
|
const _hoisted_15 = { class: "settings-section" } |
|
|
|
|
const _hoisted_16 = { class: "setting-item" } |
|
|
|
|
const _hoisted_17 = { class: "toggle-switch" } |
|
|
|
|
const _hoisted_18 = { class: "setting-item" } |
|
|
|
|
const _hoisted_19 = { class: "toggle-switch" } |
|
|
|
|
const _hoisted_20 = { class: "setting-item" } |
|
|
|
|
const _hoisted_21 = { class: "settings-section" } |
|
|
|
|
const _hoisted_22 = { class: "setting-item" } |
|
|
|
|
const _hoisted_23 = { class: "setting-item" } |
|
|
|
|
const _hoisted_24 = { class: "setting-item" } |
|
|
|
|
const _hoisted_25 = { class: "toggle-switch" } |
|
|
|
|
const _hoisted_26 = { class: "setting-item" } |
|
|
|
|
const _hoisted_27 = { class: "settings-actions" } |
|
|
|
|
const _hoisted_28 = ["disabled"] |
|
|
|
|
const _hoisted_29 = { key: 0 } |
|
|
|
|
const _hoisted_30 = { key: 1 } |
|
|
|
|
const _hoisted_31 = { key: 2 } |
|
|
|
|
const _hoisted_24 = { class: "toggle-switch" } |
|
|
|
|
const _hoisted_25 = { class: "setting-item" } |
|
|
|
|
const _hoisted_26 = { class: "settings-actions" } |
|
|
|
|
const _hoisted_27 = ["disabled"] |
|
|
|
|
const _hoisted_28 = { key: 0 } |
|
|
|
|
const _hoisted_29 = { key: 1 } |
|
|
|
|
const _hoisted_30 = { key: 2 } |
|
|
|
|
|
|
|
|
|
function render(_ctx, _cache, $props, $setup, $data, $options) { |
|
|
|
|
const _component_Toast = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("Toast") |
|
|
|
|
|
|
|
|
|
return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_1, [ |
|
|
|
|
_cache[45] || (_cache[45] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { class: "page-header" }, [ |
|
|
|
|
_cache[43] || (_cache[43] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { class: "page-header" }, [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h2", null, "用户设置") |
|
|
|
|
], -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_2, [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" 个人偏好 "), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_3, [ |
|
|
|
|
_cache[23] || (_cache[23] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", null, "个人偏好", -1 /* CACHED */)), |
|
|
|
|
_cache[22] || (_cache[22] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", null, "个人偏好", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_4, [ |
|
|
|
|
_cache[18] || (_cache[18] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "应用名称", -1 /* CACHED */)), |
|
|
|
|
_cache[17] || (_cache[17] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "应用名称", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { |
|
|
|
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (($setup.settings.appName) = $event)), |
|
|
|
|
type: "text", |
|
|
|
@ -450,10 +458,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -450,10 +458,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_5, [ |
|
|
|
|
_cache[20] || (_cache[20] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "语言", -1 /* CACHED */)), |
|
|
|
|
_cache[19] || (_cache[19] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "语言", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("select", { |
|
|
|
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (($setup.settings.language) = $event)) |
|
|
|
|
}, _cache[19] || (_cache[19] = [ |
|
|
|
|
}, _cache[18] || (_cache[18] = [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("option", { value: "zh-CN" }, "简体中文", -1 /* CACHED */), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("option", { value: "en-US" }, "English", -1 /* CACHED */) |
|
|
|
|
]), 512 /* NEED_PATCH */), [ |
|
|
|
@ -461,11 +469,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -461,11 +469,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_6, [ |
|
|
|
|
_cache[22] || (_cache[22] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "主题", -1 /* CACHED */)), |
|
|
|
|
_cache[21] || (_cache[21] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "主题", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("select", { |
|
|
|
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (($setup.settings.theme) = $event)), |
|
|
|
|
onChange: _cache[3] || (_cache[3] = $event => ($setup.handleThemeChange($setup.settings.theme))) |
|
|
|
|
}, _cache[21] || (_cache[21] = [ |
|
|
|
|
}, _cache[20] || (_cache[20] = [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("option", { value: "light" }, "浅色主题", -1 /* CACHED */), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("option", { value: "dark" }, "深色主题", -1 /* CACHED */), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("option", { value: "auto" }, "跟随系统", -1 /* CACHED */) |
|
|
|
@ -476,9 +484,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -476,9 +484,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" 应用设置 "), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_7, [ |
|
|
|
|
_cache[26] || (_cache[26] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", null, "应用设置", -1 /* CACHED */)), |
|
|
|
|
_cache[25] || (_cache[25] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", null, "应用设置", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_8, [ |
|
|
|
|
_cache[24] || (_cache[24] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "请求超时时间 (秒)", -1 /* CACHED */)), |
|
|
|
|
_cache[23] || (_cache[23] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "请求超时时间 (秒)", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { |
|
|
|
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (($setup.settings.timeout) = $event)), |
|
|
|
|
type: "number", |
|
|
|
@ -489,7 +497,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -489,7 +497,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_9, [ |
|
|
|
|
_cache[25] || (_cache[25] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "自动重试次数", -1 /* CACHED */)), |
|
|
|
|
_cache[24] || (_cache[24] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "自动重试次数", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { |
|
|
|
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (($setup.settings.retryCount) = $event)), |
|
|
|
|
type: "number", |
|
|
|
@ -502,25 +510,25 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -502,25 +510,25 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" 用户设置 "), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_10, [ |
|
|
|
|
_cache[32] || (_cache[32] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", null, "用户设置", -1 /* CACHED */)), |
|
|
|
|
_cache[30] || (_cache[30] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", null, "用户设置", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_11, [ |
|
|
|
|
_cache[28] || (_cache[28] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "自动登录", -1 /* CACHED */)), |
|
|
|
|
_cache[27] || (_cache[27] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "关闭窗口不登出", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_12, [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { |
|
|
|
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => (($setup.settings.autoLogin) = $event)), |
|
|
|
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => (($setup.settings.keepLoginOnClose) = $event)), |
|
|
|
|
type: "checkbox", |
|
|
|
|
id: "autoLogin" |
|
|
|
|
id: "keepLoginOnClose" |
|
|
|
|
}, null, 512 /* NEED_PATCH */), [ |
|
|
|
|
[vue__WEBPACK_IMPORTED_MODULE_0__.vModelCheckbox, $setup.settings.autoLogin] |
|
|
|
|
[vue__WEBPACK_IMPORTED_MODULE_0__.vModelCheckbox, $setup.settings.keepLoginOnClose] |
|
|
|
|
]), |
|
|
|
|
_cache[27] || (_cache[27] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { |
|
|
|
|
for: "autoLogin", |
|
|
|
|
_cache[26] || (_cache[26] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { |
|
|
|
|
for: "keepLoginOnClose", |
|
|
|
|
class: "toggle-label" |
|
|
|
|
}, null, -1 /* CACHED */)) |
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_13, [ |
|
|
|
|
_cache[30] || (_cache[30] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "记住密码", -1 /* CACHED */)), |
|
|
|
|
_cache[29] || (_cache[29] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "记住密码", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_14, [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { |
|
|
|
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (($setup.settings.rememberPassword) = $event)), |
|
|
|
@ -529,63 +537,52 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -529,63 +537,52 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
|
|
}, null, 512 /* NEED_PATCH */), [ |
|
|
|
|
[vue__WEBPACK_IMPORTED_MODULE_0__.vModelCheckbox, $setup.settings.rememberPassword] |
|
|
|
|
]), |
|
|
|
|
_cache[29] || (_cache[29] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { |
|
|
|
|
_cache[28] || (_cache[28] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { |
|
|
|
|
for: "rememberPassword", |
|
|
|
|
class: "toggle-label" |
|
|
|
|
}, null, -1 /* CACHED */)) |
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_15, [ |
|
|
|
|
_cache[31] || (_cache[31] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "会话超时时间 (分钟)", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { |
|
|
|
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (($setup.settings.sessionTimeout) = $event)), |
|
|
|
|
type: "number", |
|
|
|
|
min: "15", |
|
|
|
|
max: "1440" |
|
|
|
|
}, null, 512 /* NEED_PATCH */), [ |
|
|
|
|
[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $setup.settings.sessionTimeout] |
|
|
|
|
]) |
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" 通知偏好 "), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_16, [ |
|
|
|
|
_cache[38] || (_cache[38] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", null, "通知偏好", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_17, [ |
|
|
|
|
_cache[34] || (_cache[34] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "桌面通知", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_18, [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_15, [ |
|
|
|
|
_cache[36] || (_cache[36] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", null, "通知偏好", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_16, [ |
|
|
|
|
_cache[32] || (_cache[32] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "桌面通知", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_17, [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { |
|
|
|
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => (($setup.settings.desktopNotifications) = $event)), |
|
|
|
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (($setup.settings.desktopNotifications) = $event)), |
|
|
|
|
type: "checkbox", |
|
|
|
|
id: "desktopNotifications" |
|
|
|
|
}, null, 512 /* NEED_PATCH */), [ |
|
|
|
|
[vue__WEBPACK_IMPORTED_MODULE_0__.vModelCheckbox, $setup.settings.desktopNotifications] |
|
|
|
|
]), |
|
|
|
|
_cache[33] || (_cache[33] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { |
|
|
|
|
_cache[31] || (_cache[31] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { |
|
|
|
|
for: "desktopNotifications", |
|
|
|
|
class: "toggle-label" |
|
|
|
|
}, null, -1 /* CACHED */)) |
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_19, [ |
|
|
|
|
_cache[36] || (_cache[36] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "声音提醒", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_20, [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_18, [ |
|
|
|
|
_cache[34] || (_cache[34] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "声音提醒", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_19, [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { |
|
|
|
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => (($setup.settings.soundNotifications) = $event)), |
|
|
|
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => (($setup.settings.soundNotifications) = $event)), |
|
|
|
|
type: "checkbox", |
|
|
|
|
id: "soundNotifications" |
|
|
|
|
}, null, 512 /* NEED_PATCH */), [ |
|
|
|
|
[vue__WEBPACK_IMPORTED_MODULE_0__.vModelCheckbox, $setup.settings.soundNotifications] |
|
|
|
|
]), |
|
|
|
|
_cache[35] || (_cache[35] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { |
|
|
|
|
_cache[33] || (_cache[33] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { |
|
|
|
|
for: "soundNotifications", |
|
|
|
|
class: "toggle-label" |
|
|
|
|
}, null, -1 /* CACHED */)) |
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_21, [ |
|
|
|
|
_cache[37] || (_cache[37] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "消息提醒间隔 (秒)", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_20, [ |
|
|
|
|
_cache[35] || (_cache[35] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "消息提醒间隔 (秒)", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { |
|
|
|
|
"onUpdate:modelValue": _cache[11] || (_cache[11] = $event => (($setup.settings.notificationInterval) = $event)), |
|
|
|
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => (($setup.settings.notificationInterval) = $event)), |
|
|
|
|
type: "number", |
|
|
|
|
min: "5", |
|
|
|
|
max: "300" |
|
|
|
@ -595,12 +592,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -595,12 +592,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" 数据管理 "), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_22, [ |
|
|
|
|
_cache[44] || (_cache[44] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", null, "数据管理", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_23, [ |
|
|
|
|
_cache[39] || (_cache[39] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "数据缓存大小 (MB)", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_21, [ |
|
|
|
|
_cache[42] || (_cache[42] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", null, "数据管理", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_22, [ |
|
|
|
|
_cache[37] || (_cache[37] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "数据缓存大小 (MB)", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { |
|
|
|
|
"onUpdate:modelValue": _cache[12] || (_cache[12] = $event => (($setup.settings.cacheSize) = $event)), |
|
|
|
|
"onUpdate:modelValue": _cache[11] || (_cache[11] = $event => (($setup.settings.cacheSize) = $event)), |
|
|
|
|
type: "number", |
|
|
|
|
min: "50", |
|
|
|
|
max: "1000" |
|
|
|
@ -608,27 +605,27 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -608,27 +605,27 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
|
|
[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $setup.settings.cacheSize] |
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_24, [ |
|
|
|
|
_cache[41] || (_cache[41] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "自动清理缓存", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_25, [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_23, [ |
|
|
|
|
_cache[39] || (_cache[39] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "自动清理缓存", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_24, [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { |
|
|
|
|
"onUpdate:modelValue": _cache[13] || (_cache[13] = $event => (($setup.settings.autoCleanCache) = $event)), |
|
|
|
|
"onUpdate:modelValue": _cache[12] || (_cache[12] = $event => (($setup.settings.autoCleanCache) = $event)), |
|
|
|
|
type: "checkbox", |
|
|
|
|
id: "autoCleanCache" |
|
|
|
|
}, null, 512 /* NEED_PATCH */), [ |
|
|
|
|
[vue__WEBPACK_IMPORTED_MODULE_0__.vModelCheckbox, $setup.settings.autoCleanCache] |
|
|
|
|
]), |
|
|
|
|
_cache[40] || (_cache[40] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { |
|
|
|
|
_cache[38] || (_cache[38] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { |
|
|
|
|
for: "autoCleanCache", |
|
|
|
|
class: "toggle-label" |
|
|
|
|
}, null, -1 /* CACHED */)) |
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_26, [ |
|
|
|
|
_cache[43] || (_cache[43] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "数据备份频率", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_25, [ |
|
|
|
|
_cache[41] || (_cache[41] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", null, "数据备份频率", -1 /* CACHED */)), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("select", { |
|
|
|
|
"onUpdate:modelValue": _cache[14] || (_cache[14] = $event => (($setup.settings.backupFrequency) = $event)) |
|
|
|
|
}, _cache[42] || (_cache[42] = [ |
|
|
|
|
"onUpdate:modelValue": _cache[13] || (_cache[13] = $event => (($setup.settings.backupFrequency) = $event)) |
|
|
|
|
}, _cache[40] || (_cache[40] = [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("option", { value: "daily" }, "每日", -1 /* CACHED */), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("option", { value: "weekly" }, "每周", -1 /* CACHED */), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("option", { value: "monthly" }, "每月", -1 /* CACHED */), |
|
|
|
@ -639,28 +636,28 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -639,28 +636,28 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" 操作按钮 "), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_27, [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_26, [ |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { |
|
|
|
|
class: "btn btn-secondary", |
|
|
|
|
onClick: _cache[15] || (_cache[15] = (...args) => ($setup.resetSettings && $setup.resetSettings(...args))) |
|
|
|
|
onClick: _cache[14] || (_cache[14] = (...args) => ($setup.resetSettings && $setup.resetSettings(...args))) |
|
|
|
|
}, " 重置所有设置 "), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { |
|
|
|
|
class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["btn", $setup.saveButtonClass]), |
|
|
|
|
onClick: _cache[16] || (_cache[16] = (...args) => ($setup.saveSettings && $setup.saveSettings(...args))), |
|
|
|
|
onClick: _cache[15] || (_cache[15] = (...args) => ($setup.saveSettings && $setup.saveSettings(...args))), |
|
|
|
|
disabled: !$setup.hasChanges || $setup.isSaving |
|
|
|
|
}, [ |
|
|
|
|
($setup.isSaving) |
|
|
|
|
? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_29, "保存中...")) |
|
|
|
|
? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_28, "保存中...")) |
|
|
|
|
: ($setup.hasChanges) |
|
|
|
|
? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_30, "保存更改")) |
|
|
|
|
: ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_31, "已保存")) |
|
|
|
|
], 10 /* CLASS, PROPS */, _hoisted_28) |
|
|
|
|
? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_29, "保存更改")) |
|
|
|
|
: ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_30, "已保存")) |
|
|
|
|
], 10 /* CLASS, PROPS */, _hoisted_27) |
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" Toast 消息提示 "), |
|
|
|
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Toast, { |
|
|
|
|
visible: $setup.showToast, |
|
|
|
|
"onUpdate:visible": _cache[17] || (_cache[17] = $event => (($setup.showToast) = $event)), |
|
|
|
|
"onUpdate:visible": _cache[16] || (_cache[16] = $event => (($setup.showToast) = $event)), |
|
|
|
|
type: $setup.toastConfig.type, |
|
|
|
|
title: $setup.toastConfig.title, |
|
|
|
|
content: $setup.toastConfig.content, |
|
|
|
|