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

任超 / js.CadastralSystem

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
  • CadastralSystem
  • mock
  • user.js
  • jiaoxiaoxi@pashanhoo.com's avatar
    feat:整体项目的架构 · 0cdc8715
    0cdc8715
    jiaoxiaoxi@pashanhoo.com committed 2020-09-16 14:05:02 +0800
user.js 418 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import Mock from 'mockjs'
// mock一组数据
const token = function() {
    let token = [
        {
            'introduction': 'I am a super administrator',
            'avatar': 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
            'name': 'Super Admin',
            'token': 'admin-token'
        }
    ];
 
    return {
        token
    }
}
 
Mock.mock('/user/login', 'post', token);