Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

micro-system / micro-portal

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • micro-portal
  • src
  • micro
  • auth.js
  • 冒粤蓉's avatar
    improve · 15d4ef77
    冒粤蓉 committed Oct 29, 2020
    15d4ef77
auth.js 428 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import qianKunStart from './index';

import store from '@/store';

import { getStorageToken } from '@/utils/storage/user';


const microAppStart = () => {
    const token = getStorageToken();
    /**
     * @name 已登录状态获取服务端微应用注册表
     */
    if (token) {
      // 处理token状态共享
      store.dispatch('app/setToken', token);
    }
    qianKunStart();
  }
  
  export default microAppStart