1
pyt
2025-01-08 79e073eab68cad5d0dd894a6df912a99c82a02c6
1
1个文件已修改
16 ■■■■ 已修改文件
src/component/userInfo.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/component/userInfo.vue
@@ -1,5 +1,5 @@
<template>
    <el-dialog :visible.sync="show" :show-close="false" width="80%" top="51px">
    <el-dialog :visible.sync="show" :show-close="false" width="80%" top="51px" :close-on-click-modal="false">
        <div class="content">
            <el-form label-position="left" label-width="105px" :model="form" :rules="rules">
                <div class="title">个人信息</div>
@@ -74,7 +74,6 @@
    props: ['show'],
    data() {
        return {
            dialogVisible: this.show,
            form: {
                name: '',
                region: '',
@@ -88,18 +87,11 @@
            }
        };
    },
    created() {
        console.log(this.$store.state.userInfo, '111');
    },
    watch: {
        show(val) {
            this.dialogVisible = val
        },
        dialogVisible(val) {
            this.$emit('update:show', val);
        },
        mounted() {
            this.dialogVisible = this.show;
            if (val) {
                console.log(this.$store.state.userInfo, '111');
            }
        }
    }
};