Coder Social home page Coder Social logo

同构后run start,页面重复渲染,一闪而过是修改后的内容,然后最后展示出来的是之前的内容。这需要如何去修改呢 about beidou HOT 4 CLOSED

alibaba avatar alibaba commented on May 1, 2024
同构后run start,页面重复渲染,一闪而过是修改后的内容,然后最后展示出来的是之前的内容。这需要如何去修改呢

from beidou.

Comments (4)

njugray avatar njugray commented on May 1, 2024

本地开发使用 npm run dev

from beidou.

wind13 avatar wind13 commented on May 1, 2024

使用 npm run dev 也是一样的,原因应该是没有自动 build 的问题。

不知道是要修改哪个配置,只要能每次修改源代码后运行 npm run build 应该就可以了。

from beidou.

wind13 avatar wind13 commented on May 1, 2024

找到一个可能的问题原因:
/config/ 目录下如果有 env 文件,请检查里面设置是 local 还是 prod,这个可能会决定服务器选择哪种启动模式,如果是 local 这个问题就好了。

from beidou.

jxl893251217 avatar jxl893251217 commented on May 1, 2024

好的,谢谢

from beidou.

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.