update 优化代码
This commit is contained in:
parent
98a8e96feb
commit
6ef9b9a741
2
src/types/module.d.ts
vendored
2
src/types/module.d.ts
vendored
@ -11,7 +11,7 @@ import { download as rd } from '@/utils/request';
|
||||
|
||||
export {};
|
||||
|
||||
declare module 'vue' {
|
||||
declare module '@vue/runtime-core' {
|
||||
interface ComponentCustomProperties {
|
||||
// 全局方法声明
|
||||
$modal: typeof modal;
|
||||
|
@ -134,7 +134,8 @@ const handleRegister = () => {
|
||||
const [err] = await to(register(registerForm.value));
|
||||
if (!err) {
|
||||
const username = registerForm.value.username;
|
||||
await ElMessageBox.alert("<font color='red'>" + t('register.registerSuccess', { username }) + '</font>', '系统提示', {
|
||||
await ElMessageBox.alert('<span style="color: red; ">' + t('register.registerSuccess', { username }) + '</font>', '系统提示', {
|
||||
app: undefined,
|
||||
dangerouslyUseHTMLString: true,
|
||||
type: 'success'
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user