bug
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<u-modal v-model="isShowText" @confirm="confirm" title="文本">
|
||||
<u-modal v-model="isShowText" @confirm="confirm" title="文本" show-cancel-button>
|
||||
<view class="slot-content">
|
||||
<textarea placeholder="请输入文本" :maxlength="-1" v-model="content"></textarea>
|
||||
</view>
|
||||
@@ -144,6 +144,7 @@
|
||||
count: 1,
|
||||
sizeType: ['compressed'],
|
||||
success: res => {
|
||||
this.$loading()
|
||||
let formData = new FormData()
|
||||
formData.append('file', res.tempFiles[0])
|
||||
this.$http.post('/admin/file/add2?type=image', formData).then(res => {
|
||||
@@ -162,7 +163,7 @@
|
||||
|
||||
confirm () {
|
||||
if (!this.content) {
|
||||
return this.$toast('文本不能为空')
|
||||
return this.$u.toast('文本不能为空')
|
||||
}
|
||||
|
||||
if (this.currIndex >= 0) {
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<u-modal v-model="isShowText" @confirm="confirm" title="文本">
|
||||
<u-modal v-model="isShowText" @confirm="confirm" title="文本" show-cancel-button>
|
||||
<view class="slot-content">
|
||||
<textarea placeholder="请输入文本" :maxlength="-1" v-model="content"></textarea>
|
||||
</view>
|
||||
@@ -153,6 +153,7 @@
|
||||
count: 1,
|
||||
sizeType: ['compressed'],
|
||||
success: res => {
|
||||
this.$loading()
|
||||
let formData = new FormData()
|
||||
formData.append('file', res.tempFiles[0])
|
||||
this.$http.post('/admin/file/add2?type=image', formData).then(res => {
|
||||
@@ -171,7 +172,7 @@
|
||||
|
||||
confirm () {
|
||||
if (!this.content) {
|
||||
return this.$toast('文本不能为空')
|
||||
return this.$u.toast('文本不能为空')
|
||||
}
|
||||
|
||||
if (this.currIndex >= 0) {
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<u-modal v-model="isShowText" @confirm="confirm" title="文本">
|
||||
<u-modal v-model="isShowText" @confirm="confirm" title="文本" show-cancel-button>
|
||||
<view class="slot-content">
|
||||
<textarea placeholder="请输入文本" :maxlength="-1" v-model="content"></textarea>
|
||||
</view>
|
||||
@@ -174,6 +174,7 @@
|
||||
count: 1,
|
||||
sizeType: ['compressed'],
|
||||
success: res => {
|
||||
this.$loading()
|
||||
let formData = new FormData()
|
||||
formData.append('file', res.tempFiles[0])
|
||||
this.$http.post('/admin/file/add2?type=image', formData).then(res => {
|
||||
@@ -192,7 +193,7 @@
|
||||
|
||||
confirm () {
|
||||
if (!this.content) {
|
||||
return this.$toast('文本不能为空')
|
||||
return this.$u.toast('文本不能为空')
|
||||
}
|
||||
|
||||
if (this.currIndex >= 0) {
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<u-modal v-model="isShowText" @confirm="confirm" title="文本">
|
||||
<u-modal v-model="isShowText" @confirm="confirm" title="文本" show-cancel-button>
|
||||
<view class="slot-content">
|
||||
<textarea placeholder="请输入文本" :maxlength="-1" v-model="content"></textarea>
|
||||
</view>
|
||||
@@ -144,6 +144,7 @@
|
||||
count: 1,
|
||||
sizeType: ['compressed'],
|
||||
success: res => {
|
||||
this.$loading()
|
||||
let formData = new FormData()
|
||||
formData.append('file', res.tempFiles[0])
|
||||
this.$http.post('/admin/file/add2?type=image', formData).then(res => {
|
||||
@@ -162,7 +163,7 @@
|
||||
|
||||
confirm () {
|
||||
if (!this.content) {
|
||||
return this.$toast('文本不能为空')
|
||||
return this.$u.toast('文本不能为空')
|
||||
}
|
||||
|
||||
if (this.currIndex >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user