diff --git a/README.md b/README.md index 9162ae1..94e3aef 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ ```bat blivechat.exe --host 127.0.0.1 --port 12450 ``` -3. 用浏览器打开[http://localhost:12450](http://localhost:12450),输入房间ID,保存配置,进入房间,复制房间URL -4. (可选)用样式生成器生成样式,复制CSS +3. 用浏览器打开[http://localhost:12450](http://localhost:12450),输入房间ID,保存配置,复制房间URL +4. 用样式生成器生成样式,复制CSS 5. 在OBS中添加浏览器源,输入URL和自定义CSS,或者可以在首页的样式设置里输入CSS ### 源代码版 @@ -41,8 +41,8 @@ ```sh python3 main.py --host 127.0.0.1 --port 12450 ``` -3. 用浏览器打开[http://localhost:12450](http://localhost:12450),输入房间ID,保存配置,进入房间,复制房间URL -4. (可选)用样式生成器生成样式,复制CSS +3. 用浏览器打开[http://localhost:12450](http://localhost:12450),输入房间ID,保存配置,复制房间URL +4. 用样式生成器生成样式,复制CSS 5. 在OBS中添加浏览器源,输入URL和自定义CSS,或者可以在首页的样式设置里输入CSS ### Docker diff --git a/frontend/src/api/config.js b/frontend/src/api/config.js index 2c6f6c6..ee5f18c 100644 --- a/frontend/src/api/config.js +++ b/frontend/src/api/config.js @@ -1,7 +1,6 @@ import axios from 'axios' import {mergeConfig} from '@/utils' -import stylegen from '@/views/StyleGenerator/stylegen' export const DEFAULT_CONFIG = { minGiftPrice: 6.911, // $1 @@ -18,7 +17,7 @@ export const DEFAULT_CONFIG = { blockUsers: '', blockMedalLevel: 0, - css: stylegen.getStyle(stylegen.DEFAULT_CONFIG) + css: '' } export function setLocalConfig (config) { diff --git a/frontend/src/components/ChatRenderer/PaidMessage.vue b/frontend/src/components/ChatRenderer/PaidMessage.vue index d03aeae..bb76410 100644 --- a/frontend/src/components/ChatRenderer/PaidMessage.vue +++ b/frontend/src/components/ChatRenderer/PaidMessage.vue @@ -16,7 +16,7 @@
{{authorName}}
-
CN¥{{price}}
+
{{priceText}}
{{time}}
@@ -33,6 +33,7 @@