Commit ab8e1402f9d1cc68a2c3392d1005450a73b4851c

Authored by boyang
1 parent b6580449

fix: 修改端口

.umirc.ts
... ... @@ -14,7 +14,7 @@ export default defineConfig({
14 14 },
15 15 proxy: {
16 16 '/api/': {
17   - target: 'http://localhost:8086/',
  17 + target: 'http://localhost:8085/',
18 18 // target: 'http://192.168.1.6:8085/',
19 19 // target: 'http://39.108.227.113:8085/',
20 20 changeOrigin: true,
... ...
src/models/count.ts
... ... @@ -2,7 +2,7 @@
2 2 import { useState } from 'react';
3 3  
4 4 const useOpenModal = () => {
5   - const [openCount, setOpenCount] = useState<number>(0);
  5 + const [openCount, setOpenCount] = useState(0);
6 6 return {
7 7 openCount,
8 8 setOpenCount,
... ...