mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-05 15:38:34 +08:00
fix: NO_LIMIT_SEND_ROLE when user settings not call (#396)
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
<!-- markdownlint-disable-file MD004 MD024 MD034 MD036 -->
|
<!-- markdownlint-disable-file MD004 MD024 MD034 MD036 -->
|
||||||
# CHANGE LOG
|
# CHANGE LOG
|
||||||
|
|
||||||
|
## main(v0.7.2)
|
||||||
|
|
||||||
|
- fix: worker 增加 `NO_LIMIT_SEND_ROLE` 配置, 有时加载失败的问题
|
||||||
|
|
||||||
## v0.7.1
|
## v0.7.1
|
||||||
|
|
||||||
- fix: 修复用户角色加载失败的问题
|
- fix: 修复用户角色加载失败的问题
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cloudflare_temp_email",
|
"name": "cloudflare_temp_email",
|
||||||
"version": "0.7.1",
|
"version": "0.7.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { onMounted } from 'vue';
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
import { useGlobalState } from '../store'
|
import { useGlobalState } from '../store'
|
||||||
|
import { api } from '../api'
|
||||||
|
|
||||||
import SenderAccess from './admin/SenderAccess.vue'
|
import SenderAccess from './admin/SenderAccess.vue'
|
||||||
import Statistics from "./admin/Statistics.vue"
|
import Statistics from "./admin/Statistics.vue"
|
||||||
@@ -22,7 +23,7 @@ import Webhook from './admin/Webhook.vue';
|
|||||||
|
|
||||||
const {
|
const {
|
||||||
adminAuth, showAdminAuth, adminTab, loading,
|
adminAuth, showAdminAuth, adminTab, loading,
|
||||||
globalTabplacement, showAdminPage
|
globalTabplacement, showAdminPage, userSettings
|
||||||
} = useGlobalState()
|
} = useGlobalState()
|
||||||
const message = useMessage()
|
const message = useMessage()
|
||||||
|
|
||||||
@@ -86,6 +87,8 @@ onMounted(async () => {
|
|||||||
showAdminAuth.value = true;
|
showAdminAuth.value = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// make sure user_id is fetched
|
||||||
|
if (!userSettings.value.user_id) await api.getUserSettings(message);
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const isPreview = ref(false)
|
|||||||
const editorRef = shallowRef()
|
const editorRef = shallowRef()
|
||||||
|
|
||||||
|
|
||||||
const { settings, sendMailModel, indexTab } = useGlobalState()
|
const { settings, sendMailModel, indexTab, userSettings } = useGlobalState()
|
||||||
|
|
||||||
const { t } = useI18n({
|
const { t } = useI18n({
|
||||||
locale: 'zh',
|
locale: 'zh',
|
||||||
@@ -136,6 +136,8 @@ const handleCreated = (editor) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
// make sure user_id is fetched
|
||||||
|
if (!userSettings.value.user_id) await api.getUserSettings(message);
|
||||||
await api.getSettings();
|
await api.getSettings();
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export const CONSTANTS = {
|
export const CONSTANTS = {
|
||||||
VERSION: 'v0.7.1',
|
VERSION: 'v0.7.2',
|
||||||
|
|
||||||
// DB settings
|
// DB settings
|
||||||
ADDRESS_BLOCK_LIST_KEY: 'address_block_list',
|
ADDRESS_BLOCK_LIST_KEY: 'address_block_list',
|
||||||
|
|||||||
Reference in New Issue
Block a user