Skip to content

Commit ccf8b5c

Browse files
committed
style: optimize massage tips
1 parent 8078e4a commit ccf8b5c

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/components/nav-content/nav-content.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ const onNavClick = (e: any) => {
9191
9292
if (path === '/management') {
9393
if (userConfigInfo.selectedRepo === '') {
94-
ElMessage.warning('请选择一个仓库')
94+
ElMessage.warning('请选择一个仓库')
9595
router.push('/config')
9696
return
9797
}
9898
9999
if (userConfigInfo.selectedDir === '') {
100-
ElMessage.warning('目录不能为空')
100+
ElMessage.warning('目录不能为空')
101101
router.push('/config')
102102
return
103103
}

src/store/modules/user-settings/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ const userSettingsModule: Module<UserSettingsStateTypes, RootStateTypes> = {
116116
state.userSettings.imageLinkType.presetList.push(rule)
117117
dispatch('USER_SETTINGS_PERSIST')
118118
} else {
119-
ElMessage.error('添加失败,该图片链接规则不合法')
119+
ElMessage.error('添加失败,该图片链接规则不合法')
120120
}
121121
} else {
122-
ElMessage.error('添加失败,该图片链接规则规则已存在')
122+
ElMessage.error('添加失败,该图片链接规则规则已存在')
123123
}
124124
},
125125

@@ -137,7 +137,7 @@ const userSettingsModule: Module<UserSettingsStateTypes, RootStateTypes> = {
137137
dispatch('USER_SETTINGS_PERSIST')
138138
}
139139
} else {
140-
ElMessage.error('修改失败,该图片链接规则不合法')
140+
ElMessage.error('修改失败,该图片链接规则不合法')
141141
}
142142
},
143143

src/views/my-config/my-config.util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const oneClickAutoConfig = async () => {
8181
const { token } = userConfigInfo
8282

8383
if (!token) {
84-
ElMessage.error('GitHub Token 不能为空')
84+
ElMessage.error('GitHub Token 不能为空')
8585
return
8686
}
8787

@@ -106,7 +106,7 @@ export const oneClickAutoConfig = async () => {
106106

107107
if (!repoInfo) {
108108
loading.close()
109-
ElMessage.error('自动创建 GitHub 仓库失败,请稍后再试')
109+
ElMessage.error('自动创建 GitHub 仓库失败,请稍后再试')
110110
return
111111
}
112112

src/views/my-config/my-config.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ async function getBranchList(repo: string) {
394394
395395
async function getUserInfo() {
396396
if (!userConfigInfo.token) {
397-
ElMessage.error('GitHub Token 不能为空')
397+
ElMessage.error('GitHub Token 不能为空')
398398
return
399399
}
400400
@@ -445,7 +445,7 @@ const onNewBranchInputBlur = () => {
445445
ElMessage.warning(`${nb} 分支已存在,请在分支列表中选择`)
446446
}
447447
} else {
448-
ElMessage.error('新建分支不能为空')
448+
ElMessage.error('新建分支不能为空')
449449
}
450450
}
451451

src/views/upload-image/upload-image.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ const uploadImage = async () => {
181181
182182
// 上传失败(网络错误等原因)
183183
case UploadStatusEnum.uploadFail:
184-
ElMessage.error('上传失败,请稍后重试')
184+
ElMessage.error('上传失败,请稍后重试')
185185
}
186186
}
187187

0 commit comments

Comments
 (0)