租房小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
416 B

10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
  1. import { getConfig } from "@/common/api.js"
  2. export default {
  3. state: {
  4. configList:[]
  5. },
  6. mutations: {
  7. setUserInfo(state,obj){
  8. state.configList = obj
  9. },
  10. // 初始化配置
  11. initConfig(){
  12. getConfig({}).then(response=>{
  13. console.info(response)
  14. // that.commit('setUserInfo',{userInfo:response.result.userInfo,token:response.result.token})
  15. }).catch(error=>{
  16. })
  17. },
  18. },
  19. actions: {}
  20. }