Skip to content

Commit

Permalink
refactor: update env config
Browse files Browse the repository at this point in the history
  • Loading branch information
novohit committed Nov 14, 2023
1 parent 38cadbd commit 080d922
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions cloudshare-frontend/src/components/user-info/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<el-dropdown-item command="payment">会员订阅</el-dropdown-item>
<el-dropdown-item command="changePassword">修改密码</el-dropdown-item>
<el-dropdown-item command="logout">退出登录</el-dropdown-item>
<el-dropdown-item command="about">
<a href="https://github.com/novohit/cloudshare">&nbsp;&nbsp;Github</a>
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
Expand Down Expand Up @@ -130,6 +133,8 @@ const handleCommand = (command) => {
doLogout()
} else if (command === 'payment') {
doPayment()
} else if (command === 'about') {
}
}
Expand Down
2 changes: 1 addition & 1 deletion cloudshare-frontend/src/utils/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ let panUtil = {
return 1024 * 1024 * 1024 * 1
},
getChunkUploadSwitch() {
return false
return true
},
goHome() {
window.location.href = '/'
Expand Down
4 changes: 2 additions & 2 deletions server/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ auth.frontend-url=${AUTH_FRONTEND_URL:http://localhost:5173}
auth.callback-url=${AUTH_CALLBACK_URL:http://localhost:8080}

# biz
cloudshare.short-link.url=http://localhost:8080/s/
cloudshare.share.front-end.url=http://127.0.0.1:5173/share/
cloudshare.short-link.url=${SHORT_LINK_URL:http://localhost:8080/s/}
cloudshare.share.front-end.url=${SHARE_FRONT_END_URL:http://127.0.0.1:5173/share/}

# storage config
#storage.engine=aliyun
Expand Down

0 comments on commit 080d922

Please sign in to comment.