BaseUrl removed from moutend hook. Ssr fix

pull/3449/head
Bahadır Sofuoğlu 2022-12-27 10:23:26 +03:00
parent ef35d1f120
commit 9bdcd26831
25 changed files with 26 additions and 65 deletions

View File

@ -111,12 +111,9 @@ import AvatarDoc from './AvatarDoc';
export default {
data() {
return {
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
mounted() {
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
components: {
AvatarDoc: AvatarDoc
}

View File

@ -125,7 +125,7 @@ export default {
numScroll: 1
}
],
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
productService: null,
@ -134,8 +134,6 @@ export default {
},
mounted() {
this.productService.getProductsSmall().then((data) => (this.products = data.slice(0, 9)));
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
components: {
CarouselDoc: CarouselDoc

View File

@ -59,12 +59,9 @@ import ChipDoc from './ChipDoc';
export default {
data() {
return {
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
mounted() {
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
components: {
ChipDoc: ChipDoc
}

View File

@ -1171,7 +1171,7 @@ export default {
`
}
},
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
productService: null,
@ -1181,7 +1181,6 @@ export default {
},
mounted() {
this.productService.getProducts().then((data) => (this.products = data));
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
methods: {
formatCurrency(value) {

View File

@ -1316,7 +1316,7 @@ export default {
`
}
},
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
created() {
@ -1335,8 +1335,6 @@ export default {
this.loading2 = false;
this.customers2.forEach((customer) => (customer.date = new Date(customer.date)));
});
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
methods: {
formatDate(value) {

View File

@ -451,7 +451,7 @@ export default {
`
}
},
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
productService: null,
@ -460,7 +460,6 @@ export default {
},
mounted() {
this.productService.getProductsWithOrdersSmall().then((data) => (this.products = data));
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
methods: {
onRowExpand(event) {

View File

@ -632,7 +632,7 @@ export default {
`
}
},
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
customerService: null,
@ -641,7 +641,6 @@ export default {
},
mounted() {
this.customerService.getCustomersMedium().then((data) => (this.customers = data));
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
methods: {
onRowGroupExpand(event) {

View File

@ -826,7 +826,7 @@ export default {
`
}
},
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
customerService: null,
@ -862,8 +862,6 @@ export default {
}
}
];
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
methods: {
openDialog() {

View File

@ -695,7 +695,7 @@ export default {
`
}
},
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
customerService: null,
@ -706,7 +706,6 @@ export default {
},
mounted() {
this.customerService.getCustomersMedium().then((data) => (this.customers = data));
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
methods: {
initFilters1() {

View File

@ -296,7 +296,7 @@ export default {
`
}
},
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
productService: null,
@ -305,7 +305,6 @@ export default {
},
mounted() {
this.productService.getProductsSmall().then((data) => (this.products = data));
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
methods: {
formatCurrency(value) {

View File

@ -169,7 +169,7 @@ export default {
{ name: 'XuXue Feng', image: 'xuxuefeng.png' }
],
statuses: ['unqualified', 'qualified', 'new', 'negotiation', 'renewal', 'proposal'],
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
created() {
@ -181,8 +181,6 @@ export default {
this.customers.forEach((customer) => (customer.date = new Date(customer.date)));
this.loading = false;
});
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
methods: {
formatDate(value) {

View File

@ -244,7 +244,7 @@ export default {
activeIndex: 0,
showThumbnails: false,
fullScreen: false,
baseUrl: ''
baseUrl: process.dev ? '' : '/primevue-nuxt'
};
},
galleriaService: null,
@ -254,7 +254,6 @@ export default {
mounted() {
this.galleriaService.getImages().then((data) => (this.images = data));
this.bindDocumentListeners();
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
},
methods: {
onThumbnailButtonClick() {

View File

@ -96,7 +96,7 @@ export default {
numVisible: 1
}
],
baseUrl: ''
baseUrl: process.dev ? '' : '/primevue-nuxt'
};
},
galleriaService: null,
@ -105,7 +105,6 @@ export default {
},
mounted() {
this.galleriaService.getImages().then((data) => (this.images = data));
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
}
};
</script>

View File

@ -107,7 +107,7 @@ export default {
numVisible: 1
}
],
baseUrl: ''
baseUrl: process.dev ? '' : '/primevue-nuxt'
};
},
galleriaService: null,
@ -116,7 +116,6 @@ export default {
},
mounted() {
this.galleriaService.getImages().then((data) => (this.images = data));
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
}
};
</script>

View File

@ -225,7 +225,7 @@ export default {
displayBasic: false,
displayBasic2: false,
displayCustom: false,
baseUrl: ''
baseUrl: process.dev ? '' : '/primevue-nuxt'
};
},
galleriaService: null,
@ -234,7 +234,6 @@ export default {
},
mounted() {
this.galleriaService.getImages().then((data) => (this.images = data));
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
},
methods: {
imageClick(index) {

View File

@ -266,7 +266,7 @@ export default {
numVisible: 1
}
],
baseUrl: ''
baseUrl: process.dev ? '' : '/primevue-nuxt'
};
},
galleriaService: null,
@ -278,8 +278,6 @@ export default {
this.images = data;
this.images2 = data.slice(0, 5);
});
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
}
};
</script>

View File

@ -177,7 +177,7 @@ export default {
numVisible: 1
}
],
baseUrl: ''
baseUrl: process.dev ? '' : '/primevue-nuxt'
};
},
galleriaService: null,
@ -186,7 +186,6 @@ export default {
},
mounted() {
this.galleriaService.getImages().then((data) => (this.images = data));
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
}
};
</script>

View File

@ -115,7 +115,7 @@ export default {
numVisible: 1
}
],
baseUrl: ''
baseUrl: process.dev ? '' : '/primevue-nuxt'
};
},
galleriaService: null,
@ -124,7 +124,6 @@ export default {
},
mounted() {
this.galleriaService.getImages().then((data) => (this.images = data));
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
},
methods: {
next() {

View File

@ -103,7 +103,7 @@ export default {
numVisible: 1
}
],
baseUrl: ''
baseUrl: process.dev ? '' : '/primevue-nuxt'
};
},
galleriaService: null,
@ -112,7 +112,6 @@ export default {
},
mounted() {
this.galleriaService.getImages().then((data) => (this.images = data));
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
}
};
</script>

View File

@ -191,7 +191,7 @@ export default {
numVisible: 1
}
],
baseUrl: ''
baseUrl: process.dev ? '' : '/primevue-nuxt'
};
},
galleriaService: null,
@ -200,7 +200,6 @@ export default {
},
mounted() {
this.galleriaService.getImages().then((data) => (this.images = data));
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
}
};
</script>

View File

@ -53,7 +53,7 @@ export default {
numVisible: 1
}
],
baseUrl: ''
baseUrl: process.dev ? '' : '/primevue-nuxt'
};
},
galleriaService: null,
@ -62,7 +62,6 @@ export default {
},
mounted() {
this.galleriaService.getImages().then((data) => (this.images = data));
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
},
components: {
GalleriaDoc: GalleriaDoc

View File

@ -33,12 +33,10 @@ import ImageDoc from './ImageDoc';
export default {
data() {
return {
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
mounted() {
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
components: {
ImageDoc: ImageDoc
}

View File

@ -90,11 +90,8 @@
export default {
data() {
return {
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
mounted() {
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
}
};
</script>

View File

@ -55,15 +55,11 @@ export default {
data() {
return {
menuActive: false,
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
scrollListener: null,
container: null,
mounted() {
this.bindScrollListener();
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
beforeUnmount() {
if (this.scrollListener) {
this.unbindScrollListener();

View File

@ -332,7 +332,7 @@ app.use(PrimeVue, {
<tr>
<th>
<div class="flex align-items-center">
<img src="@/assets/images//browsers/edge.svg" alt="edge" style="width: 1.5rem" class="mr-2" />
<img src="@/assets/images/browsers/edge.svg" alt="edge" style="width: 1.5rem" class="mr-2" />
Edge
</div>
</th>