Compare commits
2 Commits
7710ac1377
...
cc7fcc7b71
Author | SHA1 | Date |
---|---|---|
wuyize | cc7fcc7b71 | |
wuyize | 76970ecb53 |
|
@ -39,7 +39,7 @@
|
|||
v-for="tag in dynamicTags"
|
||||
closable
|
||||
:disable-transitions="false"
|
||||
@close="handleClose(tag)"
|
||||
@close="handleClose2(tag)"
|
||||
>
|
||||
{{ tag }}
|
||||
</el-tag>
|
||||
|
@ -90,7 +90,7 @@ export default {
|
|||
dialogFormVisible: Boolean,
|
||||
},
|
||||
methods: {
|
||||
handleClose(tag) {
|
||||
handleClose2(tag) {
|
||||
this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
|
||||
},
|
||||
|
||||
|
@ -150,7 +150,7 @@ export default {
|
|||
this.dynamicTags = [];
|
||||
},
|
||||
(err) => {
|
||||
this.$message.error("用户名不存在");
|
||||
this.$message.error("添加失败");
|
||||
}
|
||||
)
|
||||
.catch(function (error) {
|
||||
|
|
|
@ -249,9 +249,9 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
const that = this
|
||||
this.viewHeight = window.innerHeight - 140;
|
||||
this.viewHeight = window.innerHeight - 150;
|
||||
window.onresize = () => {
|
||||
that.viewHeight = window.innerHeight - 140;
|
||||
that.viewHeight = window.innerHeight - 150;
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in New Issue