提交 54a0c005 编写于 作者: wanhai_wu's avatar wanhai_wu

build

上级 bed63178
...@@ -7,7 +7,9 @@ import routes from './routes'; ...@@ -7,7 +7,9 @@ import routes from './routes';
const { REACT_APP_ENV = 'dev' } = process.env; const { REACT_APP_ENV = 'dev' } = process.env;
export default defineConfig({ export default defineConfig(
{
history: {type: 'hash'},
/** /**
* @name 开启 hash 模式 * @name 开启 hash 模式
* @description 让 build 之后的产物包含 hash 后缀。通常用于增量发布和避免浏览器加载缓存。 * @description 让 build 之后的产物包含 hash 后缀。通常用于增量发布和避免浏览器加载缓存。
......
...@@ -8,6 +8,6 @@ ...@@ -8,6 +8,6 @@
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script src="/umi.c054fc9f.js"></script> <script src="/umi.f0ee633d.js"></script>
</body></html> </body></html>
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
...@@ -69,8 +69,8 @@ const Auth = () => { ...@@ -69,8 +69,8 @@ const Auth = () => {
const fie = form.validateFields() const fie = form.validateFields()
fie.then(()=> { fie.then(()=> {
( async ()=> { ( async ()=> {
let msg = await (status === 0 ? addMenu({menu:{...form.getFieldsValue()}}) : status === 1 ? saveMenu({role:{...form.getFieldsValue()}}): null) let msg = await (status === 0 ? addMenu({menu:{...form.getFieldsValue()}}) : status === 1 ? saveMenu({menu:{...form.getFieldsValue()}}): null)
if (isEmptyObject(msg)) { if (isEmptyObject(msg) || (msg !== null || msg !== '')) {
success() success()
setIsModalOpen(false); setIsModalOpen(false);
search() search()
......
...@@ -82,10 +82,11 @@ const FsQr = () => { ...@@ -82,10 +82,11 @@ const FsQr = () => {
const port = window.location.port; const port = window.location.port;
console.log(domain); console.log(domain);
console.log(port); console.log(port);
const src = domain + ':' + port const src = domain
redirectUri.current = `${window?.location?.origin}/user/login`;//重定向地址,需在管理后台进行配置 redirectUri.current = `${window?.location?.origin}/user/login`;//重定向地址,需在管理后台进行配置
goto.current = `https://passport.feishu.cn/suite/passport/oauth/authorize?client_id=cli_a3631f654971500d&redirect_uri=http://${src}/user/login&response_type=code&state=state123456` goto.current = `https://passport.feishu.cn/suite/passport/oauth/authorize?client_id=cli_a3631f654971500d&redirect_uri=http://${src}/user/login&response_type=code&state=state123456`
console.log(goto.current,'++++++++++++++++++++++++')
let script = document.querySelector('#script'); let script = document.querySelector('#script');
if (script) { if (script) {
return; return;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册