|
@@ -1,6 +1,7 @@
|
|
|
import Vue from 'vue'
|
|
|
import Vuex from 'vuex'
|
|
|
import ajax from '@/api/userApi'
|
|
|
+import { getToken } from '@/utils/auth'
|
|
|
// import router from '@/router'
|
|
|
|
|
|
Vue.use(Vuex)
|
|
@@ -36,7 +37,7 @@ const store = new Vuex.Store({
|
|
|
getPlanEndProjectData(state) {
|
|
|
console.log("获取信息")
|
|
|
ajax.get(state.api + "/SelectProjectEndData", {
|
|
|
- uid: state.userInfo.userid
|
|
|
+ uid: getToken()
|
|
|
}).then(res => {
|
|
|
state.Notify = res['data'][0];
|
|
|
if (state.Notify.length > 0) state.NotifyDig = true;
|