ソースを参照

Fixed string formating

master
Kobus 5年前
コミット
ae9ffdb4ef
1個のファイルの変更1行の追加7行の削除
  1. 1
    7
      src/components/timeshare/buy/buyPage.vue

+ 1
- 7
src/components/timeshare/buy/buyPage.vue ファイルの表示

@@ -121,13 +121,7 @@ export default {
121 121
   computed: {
122 122
     ...mapState('timeshareBuy', ['detailedRegion', 'resort']),
123 123
     mapUrl() {
124
-      return (
125
-        'http://maps.google.com/maps?q='
126
-        + this.resort.prLatitude
127
-        + ', '
128
-        + this.resort.prLongitude
129
-        + '&z=15&output=embed'
130
-      );
124
+      return `http://maps.google.com/maps?q=${this.resort.prLatitude},${this.resort.prLongitude}&z=15&output=embed`;
131 125
     },
132 126
     regions() {
133 127
       return _.sortBy(this.detailedRegion, r => r.regionName);

読み込み中…
キャンセル
保存