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

layout/components/AppMain.vue 里边的 router-view 再次出现了ID#app #4

Closed
ren2436 opened this issue Dec 10, 2018 · 4 comments
Closed

Comments

@ren2436
Copy link

ren2436 commented Dec 10, 2018

image
不仅出现了多个ID#app,并且也没有动画效果和 section class="app-main" 这个标签
image
PanJiaChen/vue-element-admin 这个项目中并没有这个问题

@artskin
Copy link

artskin commented Jan 7, 2019

image

我是这么处理的,main.ts文件里,h外边的小括号去掉就好了

@ren2436
Copy link
Author

ren2436 commented Jan 8, 2019

@artskin 我这边经测试,这个小括号去不去都一样的
起初我把app.vue 中 TS部分删除即可,后来我发现,其他的vue页面引用的vue是通过vue-property-decorator
qq 20190108094836

而App.vue中 是
qq 20190108093634

修改成 vue-property-decorator 方式即可

@Armour
Copy link
Owner

Armour commented Jan 8, 2019

Make sure it fix the bug and you can send a PR if you want :)

Armour referenced this issue Jan 9, 2019
* Regenerate project using vue-cli 3.3.0
* Replace vue-cli-plugin-elment-ui with vue-cli-plugin-element
* Support vuex-module-decorators v0.9.7
* Add deploy.sh script
* Set class public/private member-access to true
@Armour
Copy link
Owner

Armour commented Jan 9, 2019

@renxiaomeng @artskin 修好了 方法是加上@Compnent 修饰符 因为我们用的是vue-class-component, 需要前后保持统一
Vue那个倒是无所谓 因为vue-property-decorator的vue也是直接import的原生的vue
具体可以看我上面给的链接

@Armour Armour closed this as completed Jan 9, 2019
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

3 participants