@sugarat/easypicker2-client 2.4.1 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/plan/log.md CHANGED
@@ -29,6 +29,10 @@ q ep server --deploy 2.3.4
29
29
  ```
30
30
  :::
31
31
 
32
+ ## v2.4.2 (2023/03/06)
33
+ ### Bugfix
34
+ * fix: 登录后台提示无权限,反复跳转到登录
35
+
32
36
  ## v2.4.1 (2023/03/05)
33
37
  ### Chore
34
38
  * 用户列表支持按文件数量排序
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sugarat/easypicker2-client",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "dev:test": "VITE_APP_AXIOS_BASE_URL=/api-test/ vite --mode test",
@@ -1,6 +1,7 @@
1
1
  <script lang="ts" setup>
2
2
  import { Bell } from '@element-plus/icons-vue'
3
3
  import { computed, reactive, onMounted, ref } from 'vue'
4
+ import { useRoute } from 'vue-router'
4
5
  import { SuperUserApi } from '@/apis'
5
6
  import MessageList from '@/components/MessageList/index.vue'
6
7
 
@@ -8,10 +9,13 @@ const activeTab = ref<'all' | 'no'>('all')
8
9
  const messageData = reactive<SuperUserApiTypes.MessageItem[]>([])
9
10
 
10
11
  const noReadMessage = computed(() => messageData.filter((v) => !v.read))
12
+ const route = useRoute()
11
13
  onMounted(() => {
12
- SuperUserApi.getMessageList().then((v) => {
13
- messageData.push(...v.data)
14
- })
14
+ if (route.name !== 'config') {
15
+ SuperUserApi.getMessageList().then((v) => {
16
+ messageData.push(...v.data)
17
+ })
18
+ }
15
19
  })
16
20
  </script>
17
21
  <template>