From d4310700b468b0939a1aeb43966a187880a5f1ea Mon Sep 17 00:00:00 2001 From: xiaoz Date: Tue, 15 Dec 2020 22:36:58 +0800 Subject: [PATCH] fix BUG --- config.simple.php | 2 ++ db/onenav.simple.db3 | Bin 32768 -> 32768 bytes templates/admin/static/embed.js | 11 ++++++++--- templates/default/index.php | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/config.simple.php b/config.simple.php index 81180e4..aec4111 100644 --- a/config.simple.php +++ b/config.simple.php @@ -25,6 +25,8 @@ $site_setting['password'] = PASSWORD; //站点标题 $site_setting['title'] = 'OneNav'; +//文字Logo +$site_setting['logo'] = 'OneNav'; //站点关键词 $site_setting['keywords'] = 'OneNav,简洁导航,云链接,个人书签'; //站点描述 diff --git a/db/onenav.simple.db3 b/db/onenav.simple.db3 index 248afccb299f3e5334596c0b6cbaf7daddd67864..bda06b0362e93f21e2e3a362d1bea3017471f147 100644 GIT binary patch literal 32768 zcmeI5+fx%)7{GUlgn*Jbr7hFWsE4$SFe)Jl1ZmZ2q){0$Acm>d2fBnM>=<@qvJr8n zGXVtw<X5K@KW$X9Za}P`v>^cC;QTl*=%^Jul22GcXKn0Xdj$v`z_h*p8dXa zzVG{;^PS9|4U;{)YZ#tJEu6QF;*ptHNsuJ*8A1d>c<`>l`!c*|;5|2Xjt}xi#!r?w zdWe#D|H#dHMr5it6WTAbL%MnOX6T3Pc^w| zj%{=^>;Yf=m{nD8vpQ_ZVcl9|L;Cn-Ju1r0K}gRu>ru7cVcTx2NA_9=vNzP!td}J% zDWanC;xsAG@NQa<9JalVB1>7i)bDl2WTtXUy0Dq{IlYXBXE-)RNij+_H#hQ3TfAjs zX?kV9Crz%@Yo{4kE3Zck%hN8}TVzhwL!aBWSsQ8`s8mt)csUR4Rs0QeQ2j`A1acN7R#opYVCU*^;V1*>184f_UhdYHmo9*igR;{mw!tB z@@9`N@NQ`WU0-Kraz$E5d)CONn8q@J|Q-IO5u{hm)YW^sZCK5<4N*ScB&3LkO z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7H%sWU^Q?8%uVRGqFp2?$D?}%!B4-Da&6~{@JS#fMLaHLxA99|*dI)WcE$r(Jnh98r7A0PR?>N6g(*jOo6u+<6S`H}$J%GQ-*g*w zKkEXzx;J8~2Pc345C8%|00;m9AOHk_01yBIKmZ85l)!40m3;BtvF0Py&Lzb1idxo( zs!CaB@!FRG^m`3>(WBZOI9v2q-XVUFPGBCix4Ut@_UPPKTuUX*MPD< ShgW`7i FVF2Gy5&8fC diff --git a/templates/admin/static/embed.js b/templates/admin/static/embed.js index f154efb..783f1e4 100644 --- a/templates/admin/static/embed.js +++ b/templates/admin/static/embed.js @@ -283,12 +283,17 @@ layui.use(['element','table','layer','form'], function(){ function get_link_info() { var url = $("#url").val(); + var index = layer.load(1); $.post('/index.php?c=api&method=get_link_info',{url:url},function(data,status){ - var index = layer.load(1); //如果添加成功 if(data.code == 0) { - $("#title").val(data.data.title); - $("#description").val(data.data.description); + if(data.data.title != null) { + $("#title").val(data.data.title); + } + if(data.data.description != null) { + $("#description").val(data.data.description); + } + layer.close(index); } else{ diff --git a/templates/default/index.php b/templates/default/index.php index 1345448..cd25323 100644 --- a/templates/default/index.php +++ b/templates/default/index.php @@ -39,7 +39,7 @@