Compare commits

...

2 Commits

Author SHA1 Message Date
wuyize cc7fcc7b71 解决一个小问题 2022-07-09 10:58:31 +08:00
wuyize 76970ecb53 解决小问题 2022-07-09 10:53:26 +08:00
2 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@
v-for="tag in dynamicTags" v-for="tag in dynamicTags"
closable closable
:disable-transitions="false" :disable-transitions="false"
@close="handleClose(tag)" @close="handleClose2(tag)"
> >
{{ tag }} {{ tag }}
</el-tag> </el-tag>
@ -90,7 +90,7 @@ export default {
dialogFormVisible: Boolean, dialogFormVisible: Boolean,
}, },
methods: { methods: {
handleClose(tag) { handleClose2(tag) {
this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1); this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
}, },
@ -150,7 +150,7 @@ export default {
this.dynamicTags = []; this.dynamicTags = [];
}, },
(err) => { (err) => {
this.$message.error("用户名不存在"); this.$message.error("添加失败");
} }
) )
.catch(function (error) { .catch(function (error) {

View File

@ -249,9 +249,9 @@ export default {
}, },
mounted() { mounted() {
const that = this const that = this
this.viewHeight = window.innerHeight - 140; this.viewHeight = window.innerHeight - 150;
window.onresize = () => { window.onresize = () => {
that.viewHeight = window.innerHeight - 140; that.viewHeight = window.innerHeight - 150;
}; };
}, },
methods: { methods: {