Skip to content

Commit

Permalink
change hardcode share url to configurable env variable (dongsuo#15)
Browse files Browse the repository at this point in the history
* change hardcode share url to configurable env variable (VUE_APP_DEPLOYMENT_URL)

* change share link from env config to window.location.host

* ... without auto-formatter

* ... without auto-formatter

* ... without auto-formatter
  • Loading branch information
adam429 authored and dongsuo committed Aug 26, 2019
1 parent 7eb982e commit 9314bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Dashboard/dashboardItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export default {
},
handleShare() {
const h = this.$createElement
const link = `https://islasher.com/vue-data-board#/fullscreendb/${this.dashboard.objectId}`
const link = `${location.host}/vue-data-board#/fullscreendb/${this.dashboard.objectId}`
this.$msgbox({
title: '分享链接',
message: h('p', null, [
Expand Down

0 comments on commit 9314bd9

Please sign in to comment.