Browse Source

fix BUG

pull/4/merge
xiaoz 4 years ago
parent
commit
d4310700b4
  1. 2
      config.simple.php
  2. BIN
      db/onenav.simple.db3
  3. 7
      templates/admin/static/embed.js
  4. 2
      templates/default/index.php

2
config.simple.php

@ -25,6 +25,8 @@ $site_setting['password'] = PASSWORD; @@ -25,6 +25,8 @@ $site_setting['password'] = PASSWORD;
//站点标题
$site_setting['title'] = 'OneNav';
//文字Logo
$site_setting['logo'] = 'OneNav';
//站点关键词
$site_setting['keywords'] = 'OneNav,简洁导航,云链接,个人书签';
//站点描述

BIN
db/onenav.simple.db3

Binary file not shown.

7
templates/admin/static/embed.js

@ -283,12 +283,17 @@ layui.use(['element','table','layer','form'], function(){ @@ -283,12 +283,17 @@ layui.use(['element','table','layer','form'], function(){
function get_link_info() {
var url = $("#url").val();
$.post('/index.php?c=api&method=get_link_info',{url:url},function(data,status){
var index = layer.load(1);
$.post('/index.php?c=api&method=get_link_info',{url:url},function(data,status){
//如果添加成功
if(data.code == 0) {
if(data.data.title != null) {
$("#title").val(data.data.title);
}
if(data.data.description != null) {
$("#description").val(data.data.description);
}
layer.close(index);
}
else{

2
templates/default/index.php

@ -39,7 +39,7 @@ @@ -39,7 +39,7 @@
<div class="logo">
<a href="/" class="logo-expanded">
<!-- <img src="templates/default/assets/images/logo@2x.png" width="100%" alt="" /> -->
<h1 style = "color:#0099FF;">OneNav</h1>
<h1 style = "color:#0099FF;"><?php echo $site_setting['logo']; ?></h1>
</a>
<a href="/" class="logo-collapsed">
<img src="templates/default/assets/images/logo-collapsed@2x.png" width="40" alt="" />

Loading…
Cancel
Save