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();