kun 19/10/9/21:58
This commit is contained in:
@@ -352,6 +352,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<template v-if="file">
|
||||
<img class="img-img" :src="file" alt />
|
||||
</template>
|
||||
<div class="ll">
|
||||
<button type="button" @click="submit(0)">保存</button>
|
||||
<button type="submit" @click="submit(1)">提交</button>
|
||||
@@ -525,8 +528,10 @@ export default {
|
||||
proimages: _this.proimages
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
if (res.data.code === 200) {
|
||||
alert(res.data.message)
|
||||
_this.file = ''
|
||||
} else {
|
||||
_this.$message.error('请求数据有问题!')
|
||||
}
|
||||
@@ -564,6 +569,11 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang='scss' scoped>
|
||||
.img-img{
|
||||
margin-top: 25px;
|
||||
width: 150px;
|
||||
height: 250px;
|
||||
}
|
||||
.wrapper {
|
||||
min-width: 1280px;
|
||||
box-sizing: border-box;
|
||||
|
||||
Reference in New Issue
Block a user