Explorar o código

上传类型修改

huangyan hai 4 meses
pai
achega
8e01ac2faa

+ 1 - 1
index.html

@@ -4,7 +4,7 @@
     <meta charset="UTF-8" />
     <link rel="icon" type="image/svg+xml" href="/src/assets/img/favicon.ico" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <title>知否在线课堂</title>
+    <title>宝智达冷链官网后台管理系统</title>
   </head>
   <body>
     <div id="app"></div>

+ 1 - 1
src/view/contents/Detail.vue

@@ -63,7 +63,7 @@ function detailhttpRequests(option) {
 const updateContent = async () => {
    //详情图开始
    let detaildataForms = new FormData();
-  detaildataForms.append('types', "file")
+  detaildataForms.append('types', "serve")
   //将图片的二进制通过表单的形式发送到后台
   detailfileLists.value.forEach((it, index) => {
     detaildataForms.append('file', it.file)

+ 1 - 1
src/view/contents/add.vue

@@ -58,7 +58,7 @@ function detailhttpRequests(option) {
 const addContent = async () => {
   //详情图开始
   let detaildataForms = new FormData();
-  detaildataForms.append('types', "file")
+  detaildataForms.append('types', "serve")
   //将图片的二进制通过表单的形式发送到后台
   detailfileLists.value.forEach((it, index) => {
     detaildataForms.append('file', it.file)

+ 1 - 1
src/view/product/Detail.vue

@@ -121,7 +121,7 @@ const updateProduct = async () => {
 
     //详情图开始
     let detaildataForms = new FormData();
-    detaildataForms.append('types', "file")
+    detaildataForms.append('types', "serve")
     //将图片的二进制通过表单的形式发送到后台
     detailfileLists.value.forEach((it, index) => {
         detaildataForms.append('file', it.file)

+ 1 - 1
src/view/product/add.vue

@@ -146,7 +146,7 @@ const addProduct = async () => {
     })
     //详情图开始
     let detaildataForms = new FormData();
-    detaildataForms.append('types', "file")
+    detaildataForms.append('types', "serve")
     //将图片的二进制通过表单的形式发送到后台
     detailfileLists.value.forEach((it, index) => {
         detaildataForms.append('file', it.file)