zhangxc %!s(int64=4) %!d(string=hai) anos
pai
achega
2970816e41
Modificáronse 3 ficheiros con 4 adicións e 4 borrados
  1. 1 3
      src/css/information.less
  2. 2 0
      src/js/information.js
  3. 1 1
      webpack.config.js

+ 1 - 3
src/css/information.less

@@ -100,9 +100,7 @@
     left: 0;
     right: 0;
   }
-  .staticKnowledge{
-    display: block;
-  }
+
   pre {
     white-space: pre-wrap;
     word-wrap: break-word;

+ 2 - 0
src/js/information.js

@@ -123,6 +123,8 @@ function renderTab(detailList){
     $(".notice h1").html(noticeName);
   }
   $(".tabList .tab").eq(0).addClass("activeTab")
+  let defaultModuleName = $(".tabList .tab").eq(0).attr("data-module")
+  $(`.${defaultModuleName}`).css("display","block")
   bindTabClick()
 }
 function bindTabClick(){

+ 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:6060";
+const proxyHost = "http://192.168.2.241:6060";
 module.exports = {
   entry: {
     index: path.resolve(__dirname, 'src/js', 'index.js'),