Selaa lähdekoodia

stylelint 修改
样式问题修正
favicon.ico 地址获取

dusenyao 3 vuotta sitten
vanhempi
commit
1a8e7142c6

BIN
public/favicon.ico


+ 0 - 1
public/index.html

@@ -4,7 +4,6 @@
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
-    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
     <title><%= webpackConfig.name %></title>
   </head>
   <body>

+ 1 - 1
src/components/payment/Audit.vue

@@ -142,7 +142,7 @@ export default {
       margin-left: 24px;
 
       .p1 {
-        display: box;
+        display: -webkit-box;
         width: 360px;
         max-height: 48px;
         margin-top: 22px;

+ 1 - 1
src/components/payment/Payment.vue

@@ -233,7 +233,7 @@ export default {
       margin-left: 24px;
 
       .p1 {
-        display: box;
+        display: -webkit-box;
         width: 360px;
         margin-top: 22px;
         overflow: hidden;

+ 11 - 1
src/layouts/components/LayoutHeader.vue

@@ -58,7 +58,7 @@
 
 <script>
 import { mapGetters } from 'vuex';
-import { getToken, removeToken } from '@/utils/auth';
+import { getToken, removeToken, getConfig } from '@/utils/auth';
 import { GetLanguageList, GetChildSysList_CanEnter_PC } from '@/api/app';
 import { loadLanguageAsync } from '@/locales/i18n';
 import { IsExistMyMessage_NotRead } from '@/api/user';
@@ -100,6 +100,16 @@ export default {
 
       this.getLangList();
     }
+
+    const { token: config, isHas: isConfigHas } = getConfig();
+    if (isConfigHas) {
+      const link = document.querySelector("link[rel*='icon']") || document.createElement('link');
+      link.type = 'image/x-icon';
+      link.rel = 'shortcut icon';
+      link.href = config.title_icon_url;
+      console.log(config.title_icon_url);
+      document.getElementsByTagName('head')[0].appendChild(link);
+    }
   },
   methods: {
     // 切换导航

+ 1 - 0
src/settings.js

@@ -2,6 +2,7 @@ const Cookies = require('js-cookie');
 
 let title = '';
 const config = Cookies.get('GCLS_Config');
+
 if (config) {
   const configObj = JSON.parse(config);
   title = configObj.title;

+ 1 - 1
src/views/course_details/index.vue

@@ -542,7 +542,7 @@ export default {
         }
 
         .intro {
-          display: box;
+          display: -webkit-box;
           height: 36px;
           -webkit-box-orient: vertical;
           -webkit-line-clamp: 2;

+ 10 - 1
src/views/live/student/audit.js

@@ -1,6 +1,15 @@
 import { Message } from 'element-ui';
 import { rtc, getHistory } from '@/views/live/common';
-export { initSDK, sendMsg, getLiveStat, createScript, downloadWebSDK, handsDown, chatRoll } from '@/views/live/common';
+export {
+  initSDK,
+  sendMsg,
+  getLiveStat,
+  createScript,
+  downloadWebSDK,
+  handsDown,
+  chatRoll,
+  closeVideo
+} from '@/views/live/common';
 import i18n from '@/locales/i18n';
 
 /**

+ 2 - 1
stylelint.config.js

@@ -47,6 +47,7 @@ module.exports = {
     // 为类选择器指定一个模式
     'selector-class-pattern': null,
     'declaration-colon-newline-after': null,
-    'value-keyword-case': ['lower', { camelCaseSvgKeywords: true }]
+    'value-keyword-case': ['lower', { camelCaseSvgKeywords: true }],
+    'value-no-vendor-prefix': [true, { ignoreValues: ['box'] }]
   }
 };