Browse Source

用户名提交

丸子 4 tháng trước cách đây
mục cha
commit
c784b70ed5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/programming/ProgrammingGame.vue

+ 1 - 1
src/views/programming/ProgrammingGame.vue

@@ -107,7 +107,7 @@ const courseCategories = reactive([])
 const userName = ref('')
 // 更新用户名
 const updateUserName = () => {
-  userName.value = localStorage.getItem('userName') || '用户'
+  userName.value = localStorage.getItem('userName')
 }
 
 // 获取主题列表