修復圖片上傳
This commit is contained in:
@@ -210,7 +210,8 @@ export default {
|
||||
this.$nextTick(function () {
|
||||
let $this = this;
|
||||
$('#iconUploadBtn').click(function () {
|
||||
uploadFile('icon').then(res => {
|
||||
uploadFile('iconFile').then(res => {
|
||||
console.log(res);
|
||||
if (res.path) {
|
||||
$this.resource.icon = res.path;
|
||||
$('#iconUploadInfo').val('上传成功');
|
||||
@@ -218,7 +219,8 @@ export default {
|
||||
});
|
||||
});
|
||||
$('#urlUploadBtn').click(function () {
|
||||
uploadFile('url').then(res => {
|
||||
uploadFile('urlFile').then(res => {
|
||||
console.log(res);
|
||||
if (res.path) {
|
||||
$this.resource.url = res.path;
|
||||
$('#urlUploadInfo').val('上传成功');
|
||||
|
@@ -178,7 +178,7 @@ export default {
|
||||
this.$nextTick(function () {
|
||||
let $this = this;
|
||||
$('#urlUploadBtn').click(function () {
|
||||
uploadFile('url').then(res => {
|
||||
uploadFile('urlFile').then(res => {
|
||||
if (res.path) {
|
||||
$this.resource.url = res.path;
|
||||
$('#urlUploadInfo').val('上传成功');
|
||||
|
Reference in New Issue
Block a user