Browse Source

部分参数修改

Koishi 2 years ago
parent
commit
9913e1a783

+ 3 - 0
.gitignore

@@ -11,5 +11,8 @@ package-lock.json
 .py/
 .idea
 .idea/
+.rar
+.zip
+.7z
 public/static/cesium/Assets/Textures/temp
 public/static/cesium/Assets/Textures/temp/

+ 1 - 5
src/App.vue

@@ -48,7 +48,6 @@
 import $ from "jquery";
 import LoginPage from "./views/user/login.vue";
 import Menu from "./views/menu/index.vue";
-import { useRoute, useRouter } from "vue-router";
 export default {
   components: {
     LoginPage,
@@ -76,10 +75,7 @@ export default {
     );
   },
 
-  mounted() {
-    // console.log(111, useRoute());
-    // console.log(222, useRouter().options.routes);
-  },
+  mounted() {},
 
   methods: {
     goLogin() {

BIN
src/assets/font/Bicubik.ttf


BIN
src/assets/font/Bicubik.woff


BIN
src/assets/font/SourceHanSansCN-Normal.ttf


+ 30 - 0
src/assets/styles/font.less

@@ -0,0 +1,30 @@
+@font-face {
+    font-family: @font-family-num;
+    src: url("../font/Bicubik.woff"), url("../font/Bicubik.ttf");
+  }
+  
+  @font-face {
+    font-family: "SourceHanSans";
+    src: url("../font/SourceHanSansCN-Normal.ttf");
+  }
+  
+  .font-num {
+    font-family: @font-family-num;
+  }
+  
+  .font-cn {
+    font-family: "SourceHanSans";
+  }
+  
+  .font-md {
+    font-size: @fontsize;
+  }
+  
+  .font-sm {
+    font-size: @fontsize-s;
+  }
+  
+  .font-lg {
+    font-size: @fontsize-l;
+  }
+  

+ 0 - 12
vue.config.js

@@ -67,18 +67,6 @@ module.exports = {
   lintOnSave: false, // 是否在开发环境下通过 eslint-loader 在每次保存时 lint 代码
   runtimeCompiler: true, // 是否使用包含运行时编译器的 Vue 构建版本
 
-  configureWebpack: {
-    plugins: [
-      new CopyWebpackPlugin([{ from: path.join(cesiumSource, cesiumWorkers), to: 'Workers' }]),
-      new CopyWebpackPlugin([{ from: path.join(cesiumSource, 'Assets'), to: 'Assets' }]),
-      new CopyWebpackPlugin([{ from: path.join(cesiumSource, 'Widgets'), to: 'Widgets' }]),
-      new CopyWebpackPlugin([{ from: path.join(cesiumSource, 'ThirdParty/Workers'), to: 'ThirdParty/Workers' }]),
-      new webpack.DefinePlugin({
-        CESIUM_BASE_URL: JSON.stringify('./')
-      }),
-    ]
-  },
-
   chainWebpack: (config) => {
     config.resolve.symlinks(true); // 修复热更新失效
     config.plugin('html')