工作台待办任务换行

uat_us
熊飞 2024-03-08 15:00:37 +08:00
parent 2ed3dd1376
commit f413ca60f3
1 changed files with 4 additions and 3 deletions

View File

@ -9,6 +9,7 @@
</el-card>
</template>
<script>
import { params } from '@/utils/ruoyi'
import { resetPassword } from '@/api/admin'
export default {
name: 'Account',
@ -17,7 +18,7 @@ export default {
},
methods: {
handleReset() {
this.$confirm(this.$t('system:userlist:message:ResetPassword'), {
this.$confirm(this.$t('system:userlist:message:ResetPassword').replace('xxx', params('userName')), {
type: 'warning',
distinguishCancelAndClose: true,
})
@ -25,8 +26,8 @@ export default {
resetPassword(this.userId).then(res => {
if (res.IsSuccess) {
let msg = this.$t('system:userlist:message:ResetPassword2')
msg = msg.replace('xxx', this.$route.query.userName)
msg = msg.replace('yyy', this.$route.query.email)
msg = msg.replace('xxx', params('userName'))
msg = msg.replace('yyy', params('email'))
this.$alert(msg)
}
})