Merge remote-tracking branch 'origin/dev/2025b' into dev/2025b

main
Lei OT 2 months ago
commit d53a824064

@ -38,7 +38,6 @@ export const fetchPermissionListByUserId = async (userId) => {
} }
const initialState = { const initialState = {
tokenInterval: null,
loginStatus: 0, loginStatus: 0,
defaltRoute: '', defaltRoute: '',
currentUser: { currentUser: {
@ -119,10 +118,9 @@ const useAuthStore = create(devtools((set, get) => ({
}, },
logout: () => { logout: () => {
const { tokenInterval, currentUser } = get() const { currentUser } = get()
const { clearStorage } = usingStorage() const { clearStorage } = usingStorage()
clearStorage() clearStorage()
clearInterval(tokenInterval)
set(() => ({ set(() => ({
...initialState, ...initialState,
currentUser: { currentUser: {

@ -13,7 +13,7 @@ function PickYear() {
<Col span={4}> <Col span={4}>
<Flex gap="middle" vertical> <Flex gap="middle" vertical>
<Typography.Title className="text-center" level={3}> <Typography.Title className="text-center" level={3}>
请选择采购年份 请选择产品年份
</Typography.Title> </Typography.Title>
<DatePicker <DatePicker
className="w-full" className="w-full"
@ -25,6 +25,13 @@ function PickYear() {
maxDate={dayjs().add(2, "year")} maxDate={dayjs().add(2, "year")}
allowClear={false} allowClear={false}
picker="year" picker="year"
styles={{
popup: {
root: {
color: 'red'
}
}
}}
open={true} open={true}
onOk={(date) => { onOk={(date) => {
const useYear = date.year(); const useYear = date.year();

Loading…
Cancel
Save