修复上传问题

This commit is contained in:
橙子
2022-10-16 15:54:49 +08:00
parent 95c506c638
commit cf43dc8e70
15 changed files with 86 additions and 26 deletions

View File

@@ -1,8 +1,8 @@
import myaxios from '@/utils/myaxios.ts'
import myaxios from '@/utils/myaxios'
import { ArticleEntity } from '@/type/interface/ArticleEntity'
export default {
add(data: ArticleEntity) {
add(data:any) {
console.log(data)
return myaxios({
url: `/article/add`,
@@ -10,7 +10,7 @@ export default {
data: data
})
},
pageList(data:ArticleEntity) {
pageList(data:any) {
return myaxios({
url: '/article/pageList',
method: 'get',

View File

@@ -1,4 +1,4 @@
import myaxios from '@/utils/myaxios.ts'
import myaxios from '@/utils/myaxios'
export default{
upload(type:string,data:any){

View File

@@ -1,4 +1,4 @@
import myaxios from '@/utils/myaxios.ts'
import myaxios from '@/utils/myaxios'
// 登录方法
export function login(username:string, password:string, code:string, uuid:string) {