refactor(components): 统一消息提示组件导入名称
- 将所有 CsMessage 导入更改为 KitMessage - 更新 CuteFileDragUpload.vue 中的消息调用 - 更新 CuteFileUpload.vue 中的消息调用 - 更新 CuteProductLineSelect.vue 中的消息调用 - 更新 CuteProductLineSelectPro.vue 中的消息调用 - 更新 CuteCodeEditor.vue 中的消息调用 - 更新 CuteRichTextEditor.vue 中的所有消息类型调用 - 更新 CuteScreenShot.vue 中的消息调用 - 更新 system menu 组件中的消息调用 - 更新 system storage oss 组件中的消息调用 - 更新 home.vue 中的注释示例 - 优化 CuteSectionTitle.vue 样式和布局 - 添加多个新组件的演示页面 - 移除重复的 Markdown 和 OneKeyCopy 演示文件
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<script>
|
||||
import { mapGetters } from 'vuex'
|
||||
import { getToken } from '@/utils/auth'
|
||||
import CsMessage from '@/utils/elementui/KitMessage'
|
||||
import KitMessage from '@/utils/elementui/KitMessage'
|
||||
|
||||
export default {
|
||||
name: 'CuteFileUpload',
|
||||
@@ -68,7 +68,7 @@ export default {
|
||||
},
|
||||
// 监听上传失成功
|
||||
handleSuccess(response, file, fileList) {
|
||||
CsMessage.Success('上传成功')
|
||||
KitMessage.Success('上传成功')
|
||||
// this.$refs.upload.clearFiles()
|
||||
// console.error('response', response)
|
||||
// console.error('file', file)
|
||||
@@ -80,7 +80,7 @@ export default {
|
||||
// 监听上传失败
|
||||
handleError(e, file, fileList) {
|
||||
const msg = JSON.parse(e.message)
|
||||
CsMessage.Error(msg.message)
|
||||
KitMessage.Error(msg.message)
|
||||
// 绑定on-error事件
|
||||
this.$emit('on-error', e, file, fileList)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user