Skip to content
  • This project
    • Loading...
  • Sign in

刘伟 / shifangcloud

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • shifangcloud
  • yly-first
  • health880
  • vue-webpack
  • webcontext.js
  • 刘伟's avatar
    十方供应链云前端初始化 · 8c1f91c2
    刘伟 committed 2025-08-25 15:45:49 +0800
    8c1f91c2
webcontext.js 280 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
var Vue = require('vue');

module.exports = {
  getAuth: function () {
    var self = this;
    return Vue.http.get('/auth')
      .then(function (resp) {
        self.user = resp.data.user || {};
        self.role = resp.data.role || {};
      });
  },

  user: {},
  role: {}
};