Giter VIP home page Giter VIP logo

Comments (5)

cdpv587 avatar cdpv587 commented on July 17, 2024

打印出来store是undefine 为什么呢? 麻烦指点一下

from vue-axios-github.

superman66 avatar superman66 commented on July 17, 2024

你在哪里存储登录成功后的返回值的呢?
我的项目中是这么写的:https://github.com/superman66/vue-axios-github/blob/master/src/login.vue#L29

from vue-axios-github.

cdpv587 avatar cdpv587 commented on July 17, 2024

这无关于存储,我store这个引入是没有任何东西的,也就是说import 失败。
image

正常你打印出来应该是这样的

from vue-axios-github.

superman66 avatar superman66 commented on July 17, 2024

看错题目了。我看出 userToken 打印出来是 undefined。那得看你 store/index 是怎么初始化的。应该是初始化出现问题了

from vue-axios-github.

cdpv587 avatar cdpv587 commented on July 17, 2024

image
image
import的顺序不同就会导致读取不出,第一个是错误的情况。请问一下这个顺序为什么会导致读取不出?

from vue-axios-github.

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.