Giter Club home page Giter Club logo

Comments (5)

brc-dd avatar brc-dd commented on May 18, 2024

开发环境返回对象可以正常使用,生产环境返回函数无法进行修改

Can you explain what are you trying to do, preferably with code that works in dev but not in prod?

from docs.

qiaokeli111 avatar qiaokeli111 commented on May 18, 2024

开发环境返回对象可以正常使用,生产环境返回函数无法进行修改

Can you explain what are you trying to do, preferably with code that works in dev but not in prod?

Okay, let me give a simple example
import Base from './Base.vue'
export default {
extends: Base,
setup(props, ctx) {
return {
...Base.setup(props, ctx),
// 本地绑定
}
}
}
This is an official document example for Vue,I just changed the .js suffix of base to .vue
This code can be used in the development environment, but there may be issues in the production environment
Because the setup function in the production environment returns a function that cannot be used ... To convert

from docs.

bencodezen avatar bencodezen commented on May 18, 2024

For issues related to the Chinese docs site, please create issues at the official repo https://github.com/vuejs-translations/docs-zh-cn. Thank you!

from docs.

brc-dd avatar brc-dd commented on May 18, 2024

Ah, it's an issue with English docs too. Probably needs just a note that it won't work with .vue files. (That snippet currently works in dev for SFCs, but not in prod.)

from docs.

qiaokeli111 avatar qiaokeli111 commented on May 18, 2024

Ah, it's an issue with English docs too. Probably needs just a note that it won't work with .vue files. (That snippet currently works in dev for SFCs, but not in prod.)
you are right, Both English and Chinese documents have this issue,all need change

from docs.

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.