BUG 31037

This commit is contained in:
aixianling
2022-09-21 16:21:41 +08:00
parent 02bdd4ab18
commit 2583312007
8 changed files with 8 additions and 8 deletions

View File

@@ -149,7 +149,7 @@ export default {
uploadFile(img, total) { uploadFile(img, total) {
uni.uploadFile({ uni.uploadFile({
url: this.$instance.config.baseURL + '/admin/file/add', url: this.$instance.defaults.baseURL + '/admin/file/add',
filePath: img, filePath: img,
name: 'file', name: 'file',
header: { header: {

View File

@@ -60,7 +60,7 @@ export default {
upLoad(img) { upLoad(img) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.uploadFile({ uni.uploadFile({
url: `${this.$instance.baseURL}/admin/file/add`, url: `${this.$instance.defaults.baseURL}/admin/file/add`,
filePath: img, filePath: img,
name: 'file', name: 'file',
header: { header: {

View File

@@ -159,7 +159,7 @@ export default {
// fail Function 否 接口调用失败的回调函数 // fail Function 否 接口调用失败的回调函数
// complete Function 否 接口调用结束的回调函数(调用成功、失败都会执行) // complete Function 否 接口调用结束的回调函数(调用成功、失败都会执行)
uni.uploadFile({ uni.uploadFile({
url: this.$instance.baseURL + "/admin/file/add", url: this.$instance.defaults.baseURL + "/admin/file/add",
filePath: that.tempFilePaths[i], filePath: that.tempFilePaths[i],
name: "file", name: "file",
// formData:params, // formData:params,

View File

@@ -453,7 +453,7 @@ export default {
const path = res.tempFilePaths[0] const path = res.tempFilePaths[0]
// this.$loading() // this.$loading()
uni.uploadFile({ uni.uploadFile({
url: this.$instance.config.baseURL + '/admin/file/add2', url: this.$instance.defaults.baseURL + '/admin/file/add2',
filePath: path, filePath: path,
name: 'file', name: 'file',
header: { header: {

View File

@@ -149,7 +149,7 @@ export default {
uploadFile(img, total) { uploadFile(img, total) {
uni.uploadFile({ uni.uploadFile({
url: this.$instance.config.baseURL + '/admin/file/add', url: this.$instance.defaults.baseURL + '/admin/file/add',
filePath: img, filePath: img,
name: 'file', name: 'file',
header: { header: {

View File

@@ -60,7 +60,7 @@ export default {
upLoad(img) { upLoad(img) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.uploadFile({ uni.uploadFile({
url: `${this.$instance.baseURL}/admin/file/add`, url: `${this.$instance.defaults.baseURL}/admin/file/add`,
filePath: img, filePath: img,
name: 'file', name: 'file',
header: { header: {

View File

@@ -60,7 +60,7 @@ export default {
upLoad(img) { upLoad(img) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.uploadFile({ uni.uploadFile({
url: `${this.$instance.baseURL}/admin/file/add`, url: `${this.$instance.defaults.baseURL}/admin/file/add`,
filePath: img, filePath: img,
name: 'file', name: 'file',
header: { header: {

View File

@@ -60,7 +60,7 @@ export default {
upLoad(img) { upLoad(img) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.uploadFile({ uni.uploadFile({
url: `${this.$instance.baseURL}/admin/file/add`, url: `${this.$instance.defaults.baseURL}/admin/file/add`,
filePath: img, filePath: img,
name: 'file', name: 'file',
header: { header: {