This commit is contained in:
yinjun.chen1
2024-06-30 23:52:42 +08:00
parent 44cede0eb8
commit 6abcf33dae
46 changed files with 2 additions and 2 deletions

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 117 KiB

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

+1 -1
View File
@@ -1,6 +1,6 @@
import {setUsername} from '../store/action'
import {useDispatch,useSelector} from 'react-redux'
function Page1(props){
function Page1(){
const dispatch=useDispatch()
const username=useSelector(state=>state.username)
const load=()=>{
+1 -1
View File
@@ -1,6 +1,6 @@
import {setUsername} from '../store/action'
import {useDispatch,useSelector} from 'react-redux'
function Page2(props){
function Page2(){
const username=useSelector(state=>(state.username))
const dispatch=useDispatch()
const load=()=>{