From 7465ee807fe4a63f48ebd1487c1bd239f603ebed Mon Sep 17 00:00:00 2001 From: xiaoz Date: Mon, 16 May 2022 11:55:20 +0800 Subject: [PATCH] fix bug --- controller/api.php | 10 ++++------ templates/admin/static/embed.js | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/controller/api.php b/controller/api.php index abe7bc6..58f2864 100755 --- a/controller/api.php +++ b/controller/api.php @@ -390,17 +390,15 @@ function export_link($api) { EOF; //遍历结果 foreach ($data as $key => $value) { - - echo "
\n"; - echo "

$key

\n"; - echo "

\n"; + echo "

$key

\n"; + echo "

\n"; foreach ($value as $link) { $title = $link['title']; $add_time = $link['add_time']; $url = $link['url']; - echo "
$title
\n"; + echo "
$title
\n"; } - echo "

\n"; + echo "

\n"; echo "
\n"; } diff --git a/templates/admin/static/embed.js b/templates/admin/static/embed.js index ad077fd..6eee47c 100755 --- a/templates/admin/static/embed.js +++ b/templates/admin/static/embed.js @@ -790,7 +790,7 @@ function export_link(url, fileName) { layer.confirm('导出的链接可以导入到浏览器也可以再次导入到OneNav!', {icon: 3, title:'确定导出所有链接?'}, function(index){ var date = new Date(); var current_time = date.toLocaleDateString(); - current_time = current_time.replaceAll("/","-"); + current_time = current_time.replaceAll("/","."); var url = "index.php?c=api&method=export_link"; var fileName = "OneNav_Export_" + current_time + ".html"; var x = new XMLHttpRequest();