Coder Social home page Coder Social logo

Comments (15)

bluefox1688 avatar bluefox1688 commented on July 17, 2024

可以,你新增页面之后,需要重新npm run dev

from vue-cli-multi-page.

hanhao0125 avatar hanhao0125 commented on July 17, 2024

我重新 run 了,没有加载

from vue-cli-multi-page.

bluefox1688 avatar bluefox1688 commented on July 17, 2024

有提示什么吗?

from vue-cli-multi-page.

hanhao0125 avatar hanhao0125 commented on July 17, 2024

image
我把 views 改成了 edu,我在其下新建了文件夹 student,但是启动过程没看到加载这个文件夹下的文件啊

from vue-cli-multi-page.

bluefox1688 avatar bluefox1688 commented on July 17, 2024

修改了/config/index.js里的模块名了没有?

from vue-cli-multi-page.

hanhao0125 avatar hanhao0125 commented on July 17, 2024

修改了,其他都是正常的

from vue-cli-multi-page.

hanhao0125 avatar hanhao0125 commented on July 17, 2024

我刚才访问了一下那个地址,竟然可以访问!!!

from vue-cli-multi-page.

hanhao0125 avatar hanhao0125 commented on July 17, 2024

不过 vue 没起作用。。。

from vue-cli-multi-page.

bluefox1688 avatar bluefox1688 commented on July 17, 2024

你新建的模块下有一个xxx.js文件,打开之后有一个import App from './listApp'类似这样的,你需要把listApp对应修改为vue名

from vue-cli-multi-page.

hanhao0125 avatar hanhao0125 commented on July 17, 2024

可以的,我刚才复制了home,修改名字后是可以正常访问的

from vue-cli-multi-page.

hanhao0125 avatar hanhao0125 commented on July 17, 2024

这个要求一个页面对应一个文件夹吗?我想分模块,例如购物模块下有选择商品和付账两个页面,能放在一个文件下吗?

from vue-cli-multi-page.

bluefox1688 avatar bluefox1688 commented on July 17, 2024

必须一个页面对应一个文件夹,你可以建一个一级文件夹,二级就都放商品和付款页

from vue-cli-multi-page.

hanhao0125 avatar hanhao0125 commented on July 17, 2024

可以。这个已经集成了 axios 吗?我一开始用的 vue-resource,在网上看到说 axios 貌似更好用?大神怎么看?

from vue-cli-multi-page.

bluefox1688 avatar bluefox1688 commented on July 17, 2024

推荐用axios

from vue-cli-multi-page.

hanhao0125 avatar hanhao0125 commented on July 17, 2024

好的,多谢大神。多谢多谢!!

from vue-cli-multi-page.

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.