tianyunperfect %!s(int64=3) %!d(string=hai) anos
pai
achega
f677285b14
Modificáronse 3 ficheiros con 12 adicións e 11 borrados
  1. 1 1
      config/proxy.ts
  2. 1 0
      src/models/login.ts
  3. 10 10
      src/pages/MemoryList/index.tsx

+ 1 - 1
config/proxy.ts

@@ -22,7 +22,7 @@ export default {
   },
   pre: {
     '/api/': {
-      target: 'http://www.tianyunperfect.cn:9080',
+      target: 'https://memory.tianyunperfect.cn',
       changeOrigin: true,
       pathRewrite: { '^': '' },
     },

+ 1 - 0
src/models/login.ts

@@ -65,6 +65,7 @@ const Model: LoginModelType = {
     logout() {
       localStorage.removeItem("success");
       localStorage.removeItem("authorization");
+      localStorage.removeItem("authorization_refresh");
       const {redirect} = getPageQuery();
       // Note: There may be security issues, please note
       if (window.location.pathname !== '/user/login' && !redirect) {

+ 10 - 10
src/pages/MemoryList/index.tsx

@@ -40,7 +40,7 @@ const TableList: React.FC<{}> = () => {
     remindTime: new Date(),
     tag: "",
     updateTime: "",
-    userId: 0
+    userId: 0, onlyText: ""
   });
 
   const [showVisible, setShowVisible] = useState(false); // 是否查看
@@ -108,15 +108,15 @@ const TableList: React.FC<{}> = () => {
       hideInForm: true,
       sorter: true
     },
-    // {
-    //   title: '更新时间',
-    //   dataIndex: 'updateTime',
-    //   valueType: 'dateTime',
-    //   width: 150,
-    //   hideInSearch: true,
-    //   hideInForm: true,
-    //   sorter: true
-    // },
+    {
+      title: '更新时间',
+      dataIndex: 'updateTime',
+      valueType: 'dateTime',
+      // width: 150,
+      hideInSearch: true,
+      hideInForm: true,
+      sorter: true
+    },
     {
       title: '操作',
       dataIndex: 'option',