...
|
...
|
@@ -9,7 +9,9 @@ async function getComponent() { |
|
|
export default function AwesomeSwiper() {
|
|
|
return {
|
|
|
component: new Promise(async (resolve) => {
|
|
|
console.log('process.env.VUE_ENV=', process.env.VUE_ENV);
|
|
|
if (process.env.VUE_ENV === 'client') {
|
|
|
console.log('getComponent');
|
|
|
Vue.use((await getComponent())[0]);
|
|
|
}
|
|
|
resolve({
|
...
|
...
|
|