RuoYi
2019-11-11 bcee37b84bde39072e6e35e642b0911a94f52eef
ruoyi-ui/src/utils/ruoyi.js
@@ -3,6 +3,8 @@
 * Copyright (c) 2019 ruoyi
 */
const baseURL = process.env.VUE_APP_BASE_API
// 日期格式化
export function parseTime(time, pattern) {
   if (arguments.length === 0) {
@@ -73,6 +75,11 @@
   return actions.join('');
}
// 通用下载方法
export function download(fileName) {
   window.location.href = baseURL + "/common/download?fileName=" + encodeURI(fileName) + "&delete=" + true;
}
// 字符串格式化(%s )
export function sprintf(str) {
   var args = arguments, flag = true, i = 1;