mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2025-11-08 22:11:35 +00:00
build(app): use the right base url depending on environment
This commit is contained in:
@@ -11,7 +11,7 @@ div(
|
||||
)
|
||||
img(
|
||||
@click="onClick"
|
||||
:src="'/images/components/BaseShare/' + network.toLowerCase() + '.svg'"
|
||||
:src="baseUrl + '/images/components/BaseShare/' + network.toLowerCase() + '.svg'"
|
||||
class="c-base-share__image"
|
||||
)
|
||||
</template>
|
||||
@@ -29,6 +29,13 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
// --> STATE <--
|
||||
baseUrl: process.env.baseUrl
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
onClick() {
|
||||
this.$emit("click", this.network);
|
||||
|
||||
Reference in New Issue
Block a user