Merge branch 'dev-2.0' of https://git.mesalab.cn/nezha/nezha-fronted into dev-2.0

This commit is contained in:
zhangyu
2021-08-23 11:39:10 +08:00
3 changed files with 6 additions and 4 deletions

View File

@@ -1758,6 +1758,7 @@ const cn = {
profile: { profile: {
profile: '个人中心', profile: '个人中心',
close: '关闭', close: '关闭',
clear: '清空',
enable: '启用', enable: '启用',
update: '更新', update: '更新',
operationRecord: '操作记录', operationRecord: '操作记录',

View File

@@ -1640,6 +1640,7 @@ const en = {
profile: { profile: {
profile: 'Profile', profile: 'Profile',
close: 'Close', close: 'Close',
clear: 'Clear',
enable: 'Enable', enable: 'Enable',
update: 'Update', update: 'Update',
operationRecord: 'Operation log', operationRecord: 'Operation log',

View File

@@ -16,8 +16,8 @@
<!-- 底部按钮 --> <!-- 底部按钮 -->
<template> <template>
<div class="profile-change__Pin-button"> <div class="profile-change__Pin-button">
<button @click="close" id="profile-close" class="footer__btn footer__btn--light"> <button @click="clear" id="profile-close" class="footer__btn footer__btn--light">
<span>{{$t('profile.close')}}</span> <span>{{$t('profile.clear')}}</span>
</button> </button>
<button @click="changePin" id="profile-update" class="footer__btn"> <button @click="changePin" id="profile-update" class="footer__btn">
<span>{{$t('profile.update')}}</span> <span>{{$t('profile.update')}}</span>
@@ -78,8 +78,8 @@ export default {
dialogClosed: function () { dialogClosed: function () {
this.$emit('dialogClosed') this.$emit('dialogClosed')
}, },
close: function () { clear: function () {
this.visible = false this.user = {}
}, },
changePin: function () { changePin: function () {
this.$refs.changePinForm.validate((valid) => { this.$refs.changePinForm.validate((valid) => {