generated from Leo_Ding/web-template
Compare commits
No commits in common. "ae489532cc368041ccfecc89690c403d58cdcc84" and "3e24b1684304ce141e15d74af11be59f9f1f9119" have entirely different histories.
ae489532cc
...
3e24b16843
@ -1,5 +1,5 @@
|
||||
import request from '@/utils/request'
|
||||
import axios from 'axios'
|
||||
|
||||
// 获取地区
|
||||
export const getRegion = (params) => request.basic.get('/region', params)
|
||||
|
||||
@ -10,10 +10,4 @@ export const getCaptcha = (params) => request.basic.get('/api/v1/captcha/id', pa
|
||||
export const getCaptchaImage = (params) => request.basic.get('/api/v1/captcha/image', params , { responseType: 'blob' })
|
||||
|
||||
//上传图片
|
||||
// export const uploadImg=(params)=>request.basic.post('/api/v1/upload',params,{Headers:{'Authorization':'','Content-Type': 'multipart/form-data'}})
|
||||
export const uploadImg=(params)=>axios.post('https://zh.shibeitong.com/api/v1/upload',params,{
|
||||
headers: {
|
||||
'Authorization':'',
|
||||
'Content-Type': 'multipart/form-data'
|
||||
},
|
||||
})
|
||||
export const uploadImg=(params)=>request.basic.post('/api/v1/upload',params,{Headers:{'Content-Type': 'multipart/form-data'}})
|
||||
@ -190,7 +190,7 @@ function handleOk() {
|
||||
try {
|
||||
showLoading()
|
||||
const params = {
|
||||
...values,
|
||||
...formData.value,
|
||||
cover:spliceUrl(formData.value.fileList[0]),
|
||||
images:formData.value.fileList?formData.value.fileList.map(item=>spliceUrl(item)):[]
|
||||
}
|
||||
|
||||
@ -131,7 +131,7 @@ async function handleLogin() {
|
||||
loading.value = false
|
||||
if (config('http.code.success') === response.success) {
|
||||
if (appStore.complete) {
|
||||
goIndex();
|
||||
goIndex()
|
||||
} else {
|
||||
await appStore.init()
|
||||
goIndex()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user