tmp2
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 6m47s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s

This commit is contained in:
SunCheng
2026-02-02 11:07:49 +08:00
parent 460dcd17ef
commit 6abc5f8b6d

View File

@@ -398,7 +398,9 @@ const handleIconSelect = (category) => {
* 生成新图标 * 生成新图标
*/ */
const handleGenerateIcon = async () => { const handleGenerateIcon = async () => {
if (!currentCategory.value) return if (!currentCategory.value) {
return
}
try { try {
isGeneratingIcon.value = true isGeneratingIcon.value = true
@@ -435,7 +437,7 @@ const handleGenerateIcon = async () => {
* 确认选择图标 * 确认选择图标
*/ */
const handleConfirmIconSelect = async () => { const handleConfirmIconSelect = async () => {
if (!currentCategory.value) return if (!currentCategory.value) {return}
try { try {
showLoadingToast({ showLoadingToast({
@@ -475,7 +477,6 @@ const handleEditOld = (category) => {
showEditDialog.value = true showEditDialog.value = true
} }
/** /**
* 确认编辑 * 确认编辑
*/ */
@@ -563,7 +564,7 @@ const resetAddForm = () => {
* 解析图标数组(第一个图标为当前选中的) * 解析图标数组(第一个图标为当前选中的)
*/ */
const parseIcon = (iconJson) => { const parseIcon = (iconJson) => {
if (!iconJson) return '' if (!iconJson) {return ''}
try { try {
const icons = JSON.parse(iconJson) const icons = JSON.parse(iconJson)
return Array.isArray(icons) && icons.length > 0 ? icons[0] : '' return Array.isArray(icons) && icons.length > 0 ? icons[0] : ''
@@ -576,7 +577,7 @@ const parseIcon = (iconJson) => {
* 解析图标数组为完整数组 * 解析图标数组为完整数组
*/ */
const parseIconArray = (iconJson) => { const parseIconArray = (iconJson) => {
if (!iconJson) return [] if (!iconJson) {return []}
try { try {
const icons = JSON.parse(iconJson) const icons = JSON.parse(iconJson)
return Array.isArray(icons) ? icons : [] return Array.isArray(icons) ? icons : []