ssh翻页
This commit is contained in:
parent
4f9f5649a9
commit
f100875b0f
|
@ -1,4 +1,4 @@
|
||||||
import React, { useState } from 'react';
|
import React, { useState , useEffect } from 'react';
|
||||||
import { Button , List , Pagination , Skeleton } from 'antd';
|
import { Button , List , Pagination , Skeleton } from 'antd';
|
||||||
import miyao from '../img/miyao_middle_icon.png';
|
import miyao from '../img/miyao_middle_icon.png';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
@ -15,9 +15,9 @@ function SSH(props) {
|
||||||
const [ visibleDesc , setVisibleDesc ] = useState(false);
|
const [ visibleDesc , setVisibleDesc ] = useState(false);
|
||||||
const [ content , setContent ] = useState(undefined);
|
const [ content , setContent ] = useState(undefined);
|
||||||
|
|
||||||
useState(()=>{
|
useEffect(()=>{
|
||||||
Init();
|
Init();
|
||||||
},[])
|
},[page])
|
||||||
|
|
||||||
function Init() {
|
function Init() {
|
||||||
const url = `/public_keys.json`;
|
const url = `/public_keys.json`;
|
||||||
|
|
Loading…
Reference in New Issue