fix: fortune type
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
VUE_APP_API_BASE_URL=http://127.0.0.1:3999
|
||||
VUE_APP_FILE_BASE_URL=https://file.lihailezzc.com
|
||||
# VUE_APP_API_BASE_URL=https://apis.lihailezzc.com
|
||||
@@ -1 +1,2 @@
|
||||
VUE_APP_API_BASE_URL=https://api.ai-meng.com
|
||||
VUE_APP_FILE_BASE_URL=https://file.lihailezzc.com
|
||||
@@ -91,7 +91,7 @@
|
||||
async save() {
|
||||
const urls = this.fileList
|
||||
.filter((f) => f.status === 'success' && f.response && f.response.code === 200)
|
||||
.map((f) => f.response.data)
|
||||
.map((f) => `https://file.lihailezzc.com/${f.response.data.key}`)
|
||||
|
||||
if (urls.length === 0) {
|
||||
this.$baseMessage('请至少上传一张图片', 'warning')
|
||||
|
||||
@@ -55,12 +55,12 @@
|
||||
@size-change="handleSizeChange"
|
||||
/>
|
||||
<edit ref="edit" @fetch-data="fetchData" />
|
||||
<batch-image-add ref="batchAdd" :do-add="doAddBatch" @fetch-data="fetchData" />
|
||||
<batch-image-add ref="batchAdd" :do-add="doAdd" @fetch-data="fetchData" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { doDelete, getList, toggleEnable, doMoveUp, doMoveDown } from '@/api/spring/avatar/decor'
|
||||
import { doDelete, getList, toggleEnable, doMoveUp, doMoveDown, doAdd } from '@/api/spring/avatar/decor'
|
||||
import Edit from './components/AppManagementEdit'
|
||||
import BatchImageAdd from '@/components/BatchImageAdd'
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
components: { Edit, BatchImageAdd },
|
||||
data() {
|
||||
return {
|
||||
doAdd: doAdd,
|
||||
list: null,
|
||||
listLoading: true,
|
||||
layout: 'total, sizes, prev, pager, next, jumper',
|
||||
@@ -104,12 +105,6 @@
|
||||
handleBatchAdd() {
|
||||
this.$refs['batchAdd'].show()
|
||||
},
|
||||
async doAddBatch(fileList) {
|
||||
console.log(11111, fileList)
|
||||
// const { msg } = await this.$refs['batchAdd'].doAdd(fileList)
|
||||
// this.$baseMessage(msg, 'success')
|
||||
// this.fetchData()
|
||||
},
|
||||
handleDelete(row) {
|
||||
if (row.id) {
|
||||
this.$baseConfirm('你确定要删除当前项吗', null, async () => {
|
||||
|
||||
Reference in New Issue
Block a user