From bcdb083a696b7e43f21b15e0c07195d409f36bce Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期二, 19 十一月 2024 09:30:50 +0800
Subject: [PATCH] 前端添加sse获取进度

---
 src/utils/graphql.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/utils/graphql.js b/src/utils/graphql.js
index 0035dcd..938c1f5 100644
--- a/src/utils/graphql.js
+++ b/src/utils/graphql.js
@@ -6,8 +6,8 @@
 
 // export default apolloClient;
 // 瀹氫箟涓嶅悓璇锋眰鍦板潃
-const EFORMURI = "https://www.9village.cn/dream_test/graphql";
-const IOTURI = "https://www.9village.cn/dream_test" + "/graphql";
+const EFORMURI = "/dream_dev/graphql";
+const IOTURI = "/dream_dev/graphql";
 // import ApolloClient from 'apollo-boost' //寮曞叆apollo-boost鎻掍欢
 import { ApolloClient } from "apollo-client";
 import { createHttpLink } from "apollo-link-http";
@@ -23,7 +23,7 @@
     headers: {
       Authorization: JSON.parse(localStorage.getItem("user")).jwtToken,
       // Authorization:'eyJhbGciOiJIUzI1NiJ9.eyJleHBUaW1lIjoiMjAyNC8wNy8zMSAxODoxMSIsInVzZXJJZCI6NDQsImp0aSI6ImVlMDM3NmFjLWQ5OTAtNDRkZS05YTVmLTUxYjhjMjc0YWNiOSIsImlhdCI6MTcyMjQxMzUwMSwic3ViIjoieWNsIiwiZXhwIjoxNzIyNDIwNzAxfQ.bSd0qag44dwXeJQpvryYJXEtrQ03-8MmHQWhgILGXO4',
-      staffId: JSON.parse(localStorage.getItem("user")).staffs[0].id,
+      staffId: JSON.parse(localStorage.getItem("selectStaff")).id,
       playerId:
         JSON.parse(localStorage.getItem("user")).players.length > 0
           ? JSON.parse(localStorage.getItem("user")).players[0].id

--
Gitblit v1.8.0