|
@@ -409,7 +409,7 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
<script setup>
|
|
|
-import { onMounted, onBeforeMount, reactive, ref } from "vue";
|
|
|
+import { onMounted, reactive, ref } from "vue";
|
|
|
import { getPostDetail, getRedPacket, finishRedPacket, oneKeyLike, oneKeyReTweet, oneKeyFollow, getTaskDetail, getReceivedList, addFinishEvent } from '@/http/redPacket.js'
|
|
|
import { getQueryString, guid, getBit } from '@/uilts/help.js'
|
|
|
import { message } from 'ant-design-vue';
|
|
@@ -1292,16 +1292,17 @@ const open_timer = () => {
|
|
|
const showLoadResult = () => {
|
|
|
state.status = 'close'
|
|
|
state.close_status = '等待结果'
|
|
|
+ getUserSetting()
|
|
|
}
|
|
|
|
|
|
-onBeforeMount(() => {
|
|
|
+const getUserSetting = () => {
|
|
|
getSetting({}).then((res) => {
|
|
|
let { code, data } = res;
|
|
|
if (code === 0) {
|
|
|
state.notification_switch = data.noticeSwitch === 1 ? true : false;
|
|
|
}
|
|
|
});
|
|
|
-})
|
|
|
+}
|
|
|
|
|
|
onMounted(() => {
|
|
|
state.process_mode = process.env.NODE_ENV
|