fix: fortune type

This commit is contained in:
zzc
2026-01-24 19:17:18 +08:00
parent 0551f2047c
commit f6ae86557e
4 changed files with 7 additions and 10 deletions

View File

@@ -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

View File

@@ -1 +1,2 @@
VUE_APP_API_BASE_URL=https://api.ai-meng.com
VUE_APP_FILE_BASE_URL=https://file.lihailezzc.com

View File

@@ -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')

View File

@@ -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 () => {