feat: 添加 message 消息提示函数,兼容 Element PlusAnt Design 两种 Message 风格

This commit is contained in:
xiaoxian521
2022-11-27 16:14:55 +08:00
parent 667ef918fc
commit 33bd64d9ff
22 changed files with 381 additions and 45 deletions

View File

@@ -42,7 +42,9 @@ const onUpdate = async (formEl: FormInstance | undefined) => {
if (valid) {
// 模拟请求,需根据实际开发进行修改
setTimeout(() => {
message(transformI18n($t("login.passwordUpdateReg")), "success");
message(transformI18n($t("login.passwordUpdateReg")), {
type: "success"
});
loading.value = false;
}, 2000);
} else {