This commit is contained in:
@@ -273,6 +273,28 @@
|
||||
<label>标题</label>
|
||||
<t-input v-model="banner.title" placeholder="如:弹性算力"></t-input>
|
||||
</div>
|
||||
<div class="form-item form-item--full">
|
||||
<label>图片地址</label>
|
||||
<div class="upload-row">
|
||||
<t-input
|
||||
v-model="banner.img"
|
||||
placeholder="/upload/banner-1.png"
|
||||
></t-input>
|
||||
<t-upload
|
||||
theme="custom"
|
||||
:action="uploadUrl"
|
||||
:headers="uploadHeaders"
|
||||
:format-response="uploadFormatResponse"
|
||||
:show-upload-progress="false"
|
||||
:max="1"
|
||||
@success="(ctx) => handleUpload(['banner', index, 'img'], ctx)"
|
||||
>
|
||||
<t-button size="small" class="ml-10">
|
||||
<t-icon name="upload" size="small" /> 上传
|
||||
</t-button>
|
||||
</t-upload>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item">
|
||||
<label>描述</label>
|
||||
<t-input v-model="banner.description" placeholder="一句宣传语"></t-input>
|
||||
@@ -902,6 +924,7 @@
|
||||
addBanner() {
|
||||
this.bannerList.push({
|
||||
title: "",
|
||||
img: "",
|
||||
description: "",
|
||||
tags: "",
|
||||
url: "",
|
||||
|
||||
Reference in New Issue
Block a user