mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-08 08:05:07 +08:00
引入 uview 组件
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
const BASE_URL = 'http://127.0.0.1:28080/api/';
|
||||
import store from '@/store'
|
||||
import { msg, getAuthToken } from './util'
|
||||
|
||||
const BASE_URL = 'http://127.0.0.1:28080/api/';
|
||||
|
||||
export const request = (options) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
// 发起请求
|
||||
|
@ -61,7 +61,7 @@ export const msg = (title = '', param={}) => {
|
||||
* @return {Boolean} 是否登陆
|
||||
*/
|
||||
export const isLogin = (options = {}) => {
|
||||
const token = this.getAuthToken();
|
||||
const token = getAuthToken();
|
||||
if (token) {
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user