zhangxc 5 tahun lalu
induk
melakukan
17dea1f18e
4 mengubah file dengan 5 tambahan dan 4 penghapusan
  1. 1 1
      src/css/information.less
  2. 1 0
      src/css/staticSearch.css
  3. 2 2
      src/js/information.js
  4. 1 1
      webpack.config.js

+ 1 - 1
src/css/information.less

@@ -112,7 +112,7 @@
     top: 0;
     margin-right: 14px;
     overflow: auto;
-    height: 100%;
+    max-height: 100%;
   }
 
   .anchors ul {

+ 1 - 0
src/css/staticSearch.css

@@ -30,6 +30,7 @@
     width: 100%;
     position: relative;
     top: 1px;
+    font-family: '微软雅黑';
 }
 .placeholder{
     color: #b2b2b2;

+ 2 - 2
src/js/information.js

@@ -126,8 +126,8 @@ function getInfomation() {
 getInfomation();
 
 function addLinkClickEvent() {
-  $("li:first").addClass("active");
-  $("li>a").on("click", function () {
+  $(".anchors ul li:first").addClass("active");
+  $(".anchors ul li>a").on("click", function () {
     $(".active").removeClass('active');
     $(this).parent().addClass("active");
   });

+ 1 - 1
webpack.config.js

@@ -4,7 +4,7 @@ const CleanWebpackPlugin = require('clean-webpack-plugin') // 清空打包目录
 const MiniCssExtractPlugin = require('mini-css-extract-plugin');
 const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
 const webpack = require('webpack');
-const proxyHost = "http://192.168.2.236:5050";
+const proxyHost = "http://192.168.2.241:5050";
 module.exports = {
   entry: {
     index: path.resolve(__dirname, 'src/js', 'index.js'),