修改file文件上传判断
This commit is contained in:
@@ -211,7 +211,8 @@ export default {
|
||||
uploadIcon() {
|
||||
let $this = this;
|
||||
let file = $('#iconFile').val();
|
||||
if (file) {
|
||||
console.log(file);
|
||||
if (file && file.length > 0) {
|
||||
$('#iconUploadBtn').click(function () {
|
||||
uploadFile('iconFile').then(res => {
|
||||
if (res.path) {
|
||||
@@ -225,7 +226,8 @@ export default {
|
||||
uploadUrl() {
|
||||
let $this = this;
|
||||
let file = $('#urlFile').val();
|
||||
if (file) {
|
||||
console.log(file);
|
||||
if (file && file.length > 0) {
|
||||
$('#urlUploadBtn').click(function () {
|
||||
uploadFile('urlFile').then(res => {
|
||||
if (res.path) {
|
||||
|
@@ -176,7 +176,8 @@ export default {
|
||||
uploadUrl() {
|
||||
let $this = this;
|
||||
let file = $('#urlFile').val();
|
||||
if (file) {
|
||||
console.log(file);
|
||||
if (file && file.length > 0) {
|
||||
$('#urlUploadBtn').click(function () {
|
||||
uploadFile('urlFile').then(res => {
|
||||
if (res.path) {
|
||||
|
Reference in New Issue
Block a user