mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 08:06:43 +08:00
优化dashboard配置功能
This commit is contained in:
@@ -50,15 +50,13 @@ if (Object.keys(config.value).length === 0) {
|
||||
// 设置项目
|
||||
function setDashboardConfig() {
|
||||
const data = JSON.stringify(config.value)
|
||||
localStorage.setItem('MP_DASHBOARD', data)
|
||||
dialog.value = false
|
||||
// 保存到服务端
|
||||
api.post('/user/config/Dashboard', data, {
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
}).then((response: any) => {
|
||||
if (response && response.success) {
|
||||
localStorage.setItem('MP_DASHBOARD', data)
|
||||
dialog.value = false
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user