fix:发版ok
This commit is contained in:
parent
76cd767afa
commit
14c8cf2364
|
@ -15,7 +15,9 @@ http {
|
|||
default_type application/octet-stream;
|
||||
# HTTP 服务器监听端口
|
||||
server {
|
||||
listen 3001;
|
||||
listen 80;
|
||||
# 启用 ETag 头,Nginx 会为每个资源生成一个唯一的 ETag 值,当资源更新时,ETag 值会改变。
|
||||
etag on;
|
||||
|
||||
# 设置允许跨域的域,* 表示允许任何域,也可以设置特定的域,has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -14,6 +14,7 @@
|
|||
"@tailwindcss/forms": "^0.5.7",
|
||||
"antd": "^5.16.1",
|
||||
"axios": "^1.6.8",
|
||||
"dayjs": "^1.11.13",
|
||||
"js-cookie": "^3.0.5",
|
||||
"next": "14.1.3",
|
||||
"postcss": "8.4.31",
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import type {Metadata} from "next";
|
||||
import "@/ui/globals.css";
|
||||
import Script from "next/script";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "任务管理",
|
||||
|
@ -18,8 +17,6 @@ export default function RootLayout({
|
|||
}>) {
|
||||
return (
|
||||
<html>
|
||||
<Script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"/>
|
||||
<Script src="https://cdn.jsdelivr.net/npm/dayjs@1/locale/zh-cn.js"/>
|
||||
<head>
|
||||
<title>任务管理</title>
|
||||
<link rel="icon" href="/favicon.ico"/>
|
||||
|
|
|
@ -9,10 +9,12 @@ export default function Home() {
|
|||
useEffect(()=>{
|
||||
if(localStorage.getItem('platform-security')){
|
||||
if (isMobile){
|
||||
window.location.href = 'http://www.huaruyu.com:80/mobile/listTask'
|
||||
replace('/mobile/')
|
||||
}else {
|
||||
replace("/task/project")
|
||||
}
|
||||
}else {
|
||||
replace("/login")
|
||||
}
|
||||
},[])
|
||||
dayjs.locale('zh-cn')
|
||||
|
|
|
@ -53,7 +53,7 @@ export default function Page() {
|
|||
})
|
||||
localStorage.setItem('platform-security', captchaLoginSuccess.token)
|
||||
if (isMobile){
|
||||
window.location.href = '/mobile'
|
||||
window.location.href = '/mobile/'
|
||||
}else {
|
||||
router.push('/task/project')
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ export default function Page() {
|
|||
Cookies.set('platform-security', response.data.data, { expires: 7 });
|
||||
// 登录成功,跳转到首页或者回调
|
||||
if (isMobile){
|
||||
window.location.href = '/mobile'
|
||||
window.location.href = '/mobile/'
|
||||
}else {
|
||||
router.push('/task/project')
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ export default function Page() {
|
|||
Cookies.set('platform-security', response.data.data, { expires: 7 });
|
||||
// 登录成功,跳转到首页或者回调
|
||||
if (isMobile){
|
||||
window.location.href = '/mobile'
|
||||
window.location.href = '/mobile/'
|
||||
}else {
|
||||
router.push('/task/project')
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
'use client'
|
||||
import React, {useCallback, useContext, useEffect, useMemo, useRef, useState} from "react";
|
||||
import {Calendar, dayjsLocalizer, Event, SlotInfo, View} from 'react-big-calendar'
|
||||
// https://day.js.org/docs/zh-CN/get-set/get-set
|
||||
import dayjs, {Dayjs} from 'dayjs'
|
||||
import 'react-big-calendar/lib/css/react-big-calendar.css'
|
||||
import 'react-big-calendar/lib/sass/styles.scss'
|
||||
|
|
Loading…
Reference in New Issue