Browse Source

fix home.vue of changePassword's resetFieds, it's invoke changePassword.vue's resetFields()

zhangyong/feature-20250815160302-金币优化
zhangrenyuan 2 months ago
parent
commit
7589f69891
  1. 2
      src/views/consume/bean/addBeanConsume.vue
  2. 13
      src/views/home.vue
  3. 2
      src/views/login.vue
  4. 3
      src/views/recharge/gold/addCoinRecharge.vue

2
src/views/consume/bean/addBeanConsume.vue

@ -289,7 +289,7 @@ const throttledHandleConsumeFormt = _.throttle(handleConsumeForm, 5000, {
</div>
</div>
</template>
<style scoped>
<style scoped lang="scss">
.userAndform {
width: 100%;
height: 100%;

13
src/views/home.vue

@ -69,12 +69,17 @@ const message = function () {
//
const showPasswordDialog = ref(false)
const pwdRef = ref()
//
const openChangePassword = () => {
showPasswordDialog.value = true
}
//
function onPwdDialogClosed () {
// resetFields
pwdRef.value?.resetFields()
}
function logout() {
const machineId = localStorage.getItem('machineId')
@ -229,8 +234,12 @@ function logout() {
v-model="showPasswordDialog"
:center="true"
width="470px"
@closed="onPwdDialogClosed"
>
<ChangePassword @confirm="showPasswordDialog = false"/>
<ChangePassword
ref="pwdRef"
@confirm="showPasswordDialog = false"
/>
</el-dialog>

2
src/views/login.vue

@ -185,7 +185,7 @@ onMounted(() => {
</el-row>
</template>
<style scoped>
<style scoped lang="scss">
.bg {
border-radius: 0 20px 20px 0;
height: 110vh;

3
src/views/recharge/gold/addCoinRecharge.vue

@ -906,7 +906,8 @@ onMounted(() => {
</div>
</template>
<style scoped>
<style scoped lang="scss">
.userAndForm {
width: 100%;
height: 100%;

Loading…
Cancel
Save