diff --git a/src/backyard/matter/Detail.vue b/src/backyard/matter/Detail.vue index 3704abb..acaa05e 100644 --- a/src/backyard/matter/Detail.vue +++ b/src/backyard/matter/Detail.vue @@ -14,7 +14,7 @@ {{matter.name}}
- 文件路径: + 路径: / @@ -26,8 +26,13 @@ + + + +
-
+
大小: {{matter.size | humanFileSize}}
@@ -43,15 +48,15 @@ 系统文件: {{matter.alien?'是':'否'}}
-
+
文件公开性: {{matter.privacy?'私有文件,只有自己或者授权的用户可以下载':'公有文件,任何人可以通过链接下载'}}
-
+
下载次数: {{matter.times}}
- -
+
图片缓存
@@ -145,6 +150,19 @@ }) } + }, + + copyPath() { + let that = this; + + let textToCopy = that.matter.path; + + that.$copyPlguin.copy(textToCopy, function () { + Message.success({ + message: textToCopy + " 复制成功!", + center: true + }) + }) } }, components: { @@ -155,7 +173,10 @@ this.matter.uuid = this.$store.state.route.params.uuid if (this.matter.uuid) { this.matter.httpDetail(function () { - that.downloadToken.httpFetchDownloadToken(that.matter.uuid) + + if (!that.matter.dir) { + that.downloadToken.httpFetchDownloadToken(that.matter.uuid) + } }) } } @@ -171,6 +192,7 @@ border-radius: 5px; padding: 20px 15px 10px 15px; margin-bottom: 30px; + .title { font-size: 16px; padding: 0 0 15px 0; @@ -178,6 +200,7 @@ margin-bottom: 10px; border-bottom: 1px solid #eee; } + .matter-breadcrumb { a { font-weight: normal; diff --git a/src/backyard/matter/widget/MatterPanel.vue b/src/backyard/matter/widget/MatterPanel.vue index 989e8f8..bde8d98 100644 --- a/src/backyard/matter/widget/MatterPanel.vue +++ b/src/backyard/matter/widget/MatterPanel.vue @@ -27,13 +27,13 @@ - - diff --git a/src/backyard/user/Login.vue b/src/backyard/user/Login.vue index 00d5b9b..2b384e1 100644 --- a/src/backyard/user/Login.vue +++ b/src/backyard/user/Login.vue @@ -6,7 +6,7 @@
-
diff --git a/src/common/model/user/User.js b/src/common/model/user/User.js index 356caaa..074554e 100644 --- a/src/common/model/user/User.js +++ b/src/common/model/user/User.js @@ -194,7 +194,7 @@ export default class User extends BaseEntity { loginValidate() { - if (!this.email) { + if (!this.username) { this.errorMessage = '账号必填' return false } @@ -210,7 +210,7 @@ export default class User extends BaseEntity { getLoginForm() { return { - email: this.email, + username: this.username, password: this.localPassword } }