2022-03-16 00:31:03 +00:00
|
|
|
<template>
|
|
|
|
<div class="mainContainer pt-1">
|
|
|
|
<v-card class="pb-5">
|
|
|
|
<v-card-title>Default Page</v-card-title>
|
|
|
|
<v-card-text>
|
|
|
|
<v-select
|
|
|
|
v-model="page"
|
2022-03-21 23:47:11 +00:00
|
|
|
:items="pages"
|
2022-03-16 00:31:03 +00:00
|
|
|
label="Default Page"
|
|
|
|
solo
|
|
|
|
></v-select>
|
|
|
|
</v-card-text>
|
|
|
|
</v-card>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
page: "home",
|
2022-03-21 23:47:11 +00:00
|
|
|
pages: ["home", "subscriptions", "library"],
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
watch: {
|
|
|
|
page: function (newVal) {
|
|
|
|
localStorage.setItem("startPage", newVal);
|
|
|
|
},
|
2022-03-16 00:31:03 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
this.page = localStorage.getItem("startPage") || "home";
|
|
|
|
},
|
2022-03-21 23:47:11 +00:00
|
|
|
};
|
2022-03-16 00:31:03 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.v-card {
|
|
|
|
margin: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
section {
|
|
|
|
padding: 0 1em 1em 1em;
|
|
|
|
}
|
|
|
|
</style>
|