diff --git a/src/utils/index.js b/src/utils/index.js
index 5bb196a..3e1dc64 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -383,6 +383,7 @@ export function downloadFile(obj, name, suffix) {
document.body.removeChild(link)
}
+// 获取当天的日期
export function getNowFormatDate() {
var date = new Date()
var seperator1 = '-'
@@ -463,3 +464,10 @@ export function setWeekly(str) {
return str.split(',').map(i => a[i]).join('/')
}
}
+
+// 根据url获取文件格式
+export function getFileFormat(str) {
+ if (str) {
+ return str.substring(str.lastIndexOf('.') + 1, str.length)
+ }
+}
diff --git a/src/views/ThemeGallery/index.vue b/src/views/ThemeGallery/index.vue
index 4e3f74b..f5e213a 100644
--- a/src/views/ThemeGallery/index.vue
+++ b/src/views/ThemeGallery/index.vue
@@ -41,7 +41,7 @@
-
+
@@ -57,12 +57,12 @@