初始上传

This commit is contained in:
2026-04-04 17:27:12 +08:00
parent 4d80d28eb4
commit b7e11774ee
11191 changed files with 1588469 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import Vue from "vue"
import Element from "element-ui"
import "element-ui/lib/theme-chalk/index.css"
import { Message } from 'element-ui'
let messageInstance = null;
const overrideMessage = (options) => {
if(messageInstance) {
messageInstance.close()
}
messageInstance = Message(options)
}
['error','success','info','warning'].forEach(type => {
overrideMessage[type] = options => {
if(typeof options === 'string') {
options = {
message:options
}
}
options.type = type
return overrideMessage(options)
}
})
Vue.use(Element)
Vue.prototype.$message = overrideMessage;