Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel + Vue 实战中遇到的问题 #40

Open
yankewei opened this issue Sep 14, 2023 · 0 comments
Open

Laravel + Vue 实战中遇到的问题 #40

yankewei opened this issue Sep 14, 2023 · 0 comments

Comments

@yankewei
Copy link
Owner

createApp is not defined

需要在 resources/js/app.js 中添加以下代码

import { createApp, ref } from 'vue';

window.createApp = createApp
window.ref       = ref

Blade 模板中显示为空

需要更新 resources/js/app.js 中更新以下代码

- import { createApp, ref } from 'vue';
+ import { createApp, ref } from 'vue/dist/vue.esm-bundler';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant