storeinfo放回到初始化中
This commit is contained in:
parent
44ed9f5d85
commit
320aab978b
4
App.jsx
4
App.jsx
|
@ -140,6 +140,9 @@ export default function App() {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function prepare() {
|
async function prepare() {
|
||||||
try {
|
try {
|
||||||
|
//重新获取设备和app信息
|
||||||
|
storeAppInfo();
|
||||||
|
|
||||||
const token = await get("token");
|
const token = await get("token");
|
||||||
const account = await get("account");
|
const account = await get("account");
|
||||||
const base = await baseRequest();
|
const base = await baseRequest();
|
||||||
|
@ -214,7 +217,6 @@ export default function App() {
|
||||||
if (state.isSignin) return;
|
if (state.isSignin) return;
|
||||||
if (!checked) return; //用户未同意隐私政策时不获取剪贴板信息
|
if (!checked) return; //用户未同意隐私政策时不获取剪贴板信息
|
||||||
getClipboardContent();
|
getClipboardContent();
|
||||||
storeAppInfo();
|
|
||||||
}, [checked]);
|
}, [checked]);
|
||||||
|
|
||||||
//登录后获取用户剪贴板内容
|
//登录后获取用户剪贴板内容
|
||||||
|
|
Loading…
Reference in New Issue