mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2026-01-20 16:53:37 +08:00
fix: 修复文件上传演示接口失效问题
This commit is contained in:
@@ -14,7 +14,7 @@ export const mapJson = (params?: object) => {
|
|||||||
export const formUpload = data => {
|
export const formUpload = data => {
|
||||||
return http.request<Result>(
|
return http.request<Result>(
|
||||||
"post",
|
"post",
|
||||||
"https://run.mocky.io/v3/3aa761d7-b0b3-4a03-96b3-6168d4f7467b",
|
"https://pureadmin.free.beeceptor.com/images",
|
||||||
{ data },
|
{ data },
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ const onDownload = () => {
|
|||||||
class="pure-upload"
|
class="pure-upload"
|
||||||
list-type="picture-card"
|
list-type="picture-card"
|
||||||
accept="image/jpeg,image/png,image/gif"
|
accept="image/jpeg,image/png,image/gif"
|
||||||
action="https://run.mocky.io/v3/3aa761d7-b0b3-4a03-96b3-6168d4f7467b"
|
action="https://pureadmin.free.beeceptor.com/images"
|
||||||
:limit="3"
|
:limit="3"
|
||||||
:headers="{ Authorization: 'eyJhbGciOiJIUzUxMiJ9.admin' }"
|
:headers="{ Authorization: 'eyJhbGciOiJIUzUxMiJ9.admin' }"
|
||||||
:on-exceed="onExceed"
|
:on-exceed="onExceed"
|
||||||
@@ -264,13 +264,13 @@ const onDownload = () => {
|
|||||||
表格操作栏中的上传头像功能
|
表格操作栏中的上传头像功能
|
||||||
</p>
|
</p>
|
||||||
<p class="text-[red] text-[12px] flex flex-auto items-center justify-end">
|
<p class="text-[red] text-[12px] flex flex-auto items-center justify-end">
|
||||||
免责声明:上传接口使用免费开源的
|
免责声明:上传接口使用
|
||||||
<el-link
|
<el-link
|
||||||
href="https://designer.mocky.io/"
|
href="https://beeceptor.com/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
style="font-size: 16px; font-weight: 800"
|
style="font-size: 16px; font-weight: 800"
|
||||||
>
|
>
|
||||||
Mocky
|
Beeceptor
|
||||||
</el-link>
|
</el-link>
|
||||||
<span class="font-bold text-[18x]"> 请不要上传重要信息 </span
|
<span class="font-bold text-[18x]"> 请不要上传重要信息 </span
|
||||||
>,如果造成任何损失,我们概不负责
|
>,如果造成任何损失,我们概不负责
|
||||||
|
|||||||
Reference in New Issue
Block a user