工作台待办任务换行

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