线路功能上传图片命名添加随机数

This commit is contained in:
fan 2023-02-21 11:30:17 +08:00
parent 224105fb16
commit fea4cf4fe2

View File

@ -468,7 +468,7 @@ export default {
}
const params = {
directory:'funBg',
fileName:'favicon_' + this.ruleForm.name + this.$route.query.mapId + '.' + fileType,
fileName:'favicon_' + this.ruleForm.name + Math.ceil(Math.random() * 1000) + '.' + fileType,
method:'PUT'
};
const that = this;