Merge branch 'main' of https://git.opencomputing.cn/yumoqing/kboss
@ -100,7 +100,7 @@ Vue.use(HappyScroll)
|
|||||||
// });
|
// });
|
||||||
|
|
||||||
// // 禁止F12和开发者工具快捷键
|
// // 禁止F12和开发者工具快捷键
|
||||||
// document.addEventListener('keydown', function(e) {
|
// document.addEventListener('keydown', function(e ) {
|
||||||
// // 禁止F12
|
// // 禁止F12
|
||||||
// if (e.key === 'F12') {
|
// if (e.key === 'F12') {
|
||||||
// e.preventDefault();
|
// e.preventDefault();
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 8.3 KiB |
@ -550,8 +550,8 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.function-icon {
|
.function-icon {
|
||||||
width: 30px;
|
width: 100%;
|
||||||
height: 30px;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.function-content {
|
.function-content {
|
||||||
|
|||||||
@ -83,7 +83,7 @@
|
|||||||
v-for="(item, index) in todoList"
|
v-for="(item, index) in todoList"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="todo-item"
|
class="todo-item"
|
||||||
@click="handleTodoClick(item.name)"
|
@click="handleTodoClick(item.name)"
|
||||||
>
|
>
|
||||||
<span class="todo-name">{{ item.name }}</span>
|
<span class="todo-name">{{ item.name }}</span>
|
||||||
<span class="todo-count">{{ item.count }}</span>
|
<span class="todo-count">{{ item.count }}</span>
|
||||||
@ -142,9 +142,9 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// 移除 initMybalance 调用,因为现在使用 computed 的 mybalance
|
|
||||||
this.initMybalance(); // ❌ 删除这一行
|
this.initMybalance();
|
||||||
this.getUnreadMsgCount();
|
this.getUnreadMsgCount();
|
||||||
this.fetchTodoCount();
|
this.fetchTodoCount();
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -186,8 +186,8 @@ export default Vue.extend({
|
|||||||
const iconIndex = index % this.navIcons.length;
|
const iconIndex = index % this.navIcons.length;
|
||||||
return this.navIcons[iconIndex];
|
return this.navIcons[iconIndex];
|
||||||
},
|
},
|
||||||
// 移除 initMybalance 方法,因为现在使用 computed 的 mybalance
|
|
||||||
async initMybalance() { // ❌ 删除这个方法
|
async initMybalance() {
|
||||||
const res = await editReachargelogAPI()
|
const res = await editReachargelogAPI()
|
||||||
if (res.status) {
|
if (res.status) {
|
||||||
this.mybalance = res.data
|
this.mybalance = res.data
|
||||||
|
|||||||