Coder Social home page Coder Social logo

Comments (4)

ren2436 avatar ren2436 commented on May 14, 2024 1

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

而App.vue中 是
qq 20190108093634

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

from vue-typescript-admin-template.

artskin avatar artskin commented on May 14, 2024

image

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

from vue-typescript-admin-template.

Armour avatar Armour commented on May 14, 2024

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

from vue-typescript-admin-template.

Armour avatar Armour commented on May 14, 2024

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

from vue-typescript-admin-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.