Commit 14fdeb84 authored by youjie's avatar youjie

no message

parent c7c84f31
......@@ -450,6 +450,13 @@
// this.plugData.MenuList[this.menuIndex].FileUrl = imgUrl;
// this.$message.success(this.$t('tips.scchenggong'));
// },2);
if(file.file.type.indexOf('video')!=-1&&FileType==1) {
FileType=2
}
else if(file.file.type.indexOf('video')==-1&&FileType==2) {
FileType=1
}
this.plugData.MenuList[this.menuIndex].FileType = FileType
if(FileType==1){
this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath;
......@@ -472,6 +479,13 @@
newArr.push(file.file);
var path = "/Upload/WebSite/";
this.$message.info(this.$t('tips.shangchuanzhong'))
if(file.file.type.indexOf('video')!=-1&&FileType==1) {
FileType=2
}
else if(file.file.type.indexOf('video')==-1&&FileType==2) {
FileType=1
}
this.plugData.MenuList[this.menuIndex].SubMenuList[this.subMenuIndex].FileType = FileType
if(FileType==1){
this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath;
......
......@@ -289,6 +289,13 @@
newArr.push(file.file);
var path = "/Upload/WebSite/";
this.$message.info(this.$t('tips.shangchuanzhong'))
if(file.file.type.indexOf('video')!=-1&&FileType==1) {
FileType=2
}
else if(file.file.type.indexOf('video')==-1&&FileType==2) {
FileType=1
}
this.plugData.NavList[this.clickIndex].FileType = FileType
if(FileType==1){
this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath;
......
......@@ -292,6 +292,13 @@
newArr.push(file.file);
var path = "/Upload/WebSite/";
this.$message.info(this.$t('tips.shangchuanzhong'))
if(file.file.type.indexOf('video')!=-1&&FileType==1) {
FileType=2
}
else if(file.file.type.indexOf('video')==-1&&FileType==2) {
FileType=1
}
this.plugData.NavList[this.clickIndex].FileType = FileType
if(FileType==1){
this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath;
......
......@@ -290,6 +290,13 @@
let newArr = [];
newArr.push(file.file);
var path = "/Upload/WebSite/";
if(file.file.type.indexOf('video')!=-1&&FileType==1) {
FileType=2
}
else if(file.file.type.indexOf('video')==-1&&FileType==2) {
FileType=1
}
this.plugData.NavList[this.clickIndex].FileType = FileType
if(FileType==1){
this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment