Skip to content

Commit 3f44c8f

Browse files
committed
feat: 更新版本号至 1.3.9,优化代码格式和可读性
1 parent bc2c404 commit 3f44c8f

3 files changed

Lines changed: 16 additions & 18 deletions

File tree

internal/models/constant.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ const (
165165
)
166166

167167
const (
168-
Version = "1.3.8" // 当前版本号
168+
Version = "1.3.9" // 当前版本号
169169
)
170170

171171
const (

web/src/stores/settting.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,15 @@ export const useSettingStore = defineStore('settingStore', () => {
5757
localStg.setItem('systemStatus', isSystemReady.value)
5858
})
5959
}
60-
6160
}
6261

6362
const getSystemSetting = async () => {
64-
await fetchGetSettings()
65-
.then((res) => {
66-
if (res.code === 1) {
67-
SystemSetting.value = res.data
68-
loading.value = false
69-
}
70-
})
63+
await fetchGetSettings().then((res) => {
64+
if (res.code === 1) {
65+
SystemSetting.value = res.data
66+
loading.value = false
67+
}
68+
})
7169
}
7270

7371
if (!isSystemReady.value) {

web/src/views/panel/modules/TheSetting.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@
9898
<!-- 自定义 CSS -->
9999
<div class="flex flex-row items-center justify-start text-gray-500 gap-2 h-10">
100100
<h2 class="font-semibold w-30 flex-shrink-0">自定义 CSS:</h2>
101-
<span v-if="!editMode"
101+
<span
102+
v-if="!editMode"
102103
class="truncate max-w-full inline-block align-middle"
103104
:title="SystemSetting.custom_css"
104105
style="vertical-align: middle"
105-
>{{
106-
SystemSetting?.custom_css?.length === 0 ? '暂无' : "******"
107-
}}</span>
106+
>{{ SystemSetting?.custom_css?.length === 0 ? '暂无' : '******' }}</span
107+
>
108108
<BaseInput
109109
v-else
110110
v-model="SystemSetting.custom_css"
@@ -116,13 +116,13 @@
116116
<!-- 自定义 Script -->
117117
<div class="flex flex-row items-center justify-start text-gray-500 gap-2 h-10">
118118
<h2 class="font-semibold w-30 flex-shrink-0">自定义 JS:</h2>
119-
<span v-if="!editMode"
119+
<span
120+
v-if="!editMode"
120121
class="truncate max-w-full inline-block align-middle"
121122
:title="SystemSetting.custom_js"
122123
style="vertical-align: middle"
123-
>{{
124-
SystemSetting?.custom_js?.length === 0 ? '暂无' : "******"
125-
}}</span>
124+
>{{ SystemSetting?.custom_js?.length === 0 ? '暂无' : '******' }}</span
125+
>
126126
<BaseInput
127127
v-else
128128
v-model="SystemSetting.custom_js"
@@ -132,7 +132,7 @@
132132
/>
133133
</div>
134134
<!-- 允许注册 -->
135-
<div class="flex flex-row items-center justify-start text-gray-500 h-10">
135+
<div class="flex flex-row items-center justify-start text-gray-500 h-10">
136136
<h2 class="font-semibold w-30 flex-shrink-0">允许注册:</h2>
137137
<BaseSwitch v-model="SystemSetting.allow_register" :disabled="!editMode" />
138138
</div>

0 commit comments

Comments
 (0)