ssh翻页

This commit is contained in:
caishi 2021-07-26 09:38:21 +08:00
parent 4f9f5649a9
commit f100875b0f
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import React, { useState } from 'react';
import React, { useState , useEffect } from 'react';
import { Button , List , Pagination , Skeleton } from 'antd';
import miyao from '../img/miyao_middle_icon.png';
import axios from 'axios';
@ -15,9 +15,9 @@ function SSH(props) {
const [ visibleDesc , setVisibleDesc ] = useState(false);
const [ content , setContent ] = useState(undefined);
useState(()=>{
useEffect(()=>{
Init();
},[])
},[page])
function Init() {
const url = `/public_keys.json`;