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 { export default {
data() { data() {
return { return {
baseUrl: '/' baseUrl: process.dev ? '/' : '/primevue-nuxt/'
}; };
}, },
mounted() {
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
components: { components: {
AvatarDoc: AvatarDoc AvatarDoc: AvatarDoc
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -332,7 +332,7 @@ app.use(PrimeVue, {
<tr> <tr>
<th> <th>
<div class="flex align-items-center"> <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 Edge
</div> </div>
</th> </th>