|
|
@@ -73,7 +73,7 @@
|
|
|
import { onMounted, ref, watch } from 'vue';
|
|
|
import { useLoadQuerys } from '@/components/composeabe/LoadQuerys';
|
|
|
import { Debounce } from '@imengyu/imengyu-utils';
|
|
|
-import { confirm, toast } from '@/components/dialog/CommonRoot';
|
|
|
+import { confirm, toast, alert } from '@/components/dialog/CommonRoot';
|
|
|
import { useAuthStore } from '@/store/auth';
|
|
|
import { useSimpleDataLoader } from '@/components/composeabe/loader/SimpleDataLoader';
|
|
|
import { envVersion } from '@/common/config/AppCofig';
|
|
|
@@ -92,11 +92,23 @@ import PrimaryButton from '@/common/components/PrimaryButton.vue';
|
|
|
import Tbutton from './components/tbutton.vue';
|
|
|
import Height from '@/components/layout/space/Height.vue';
|
|
|
import type { UploaderAction, UploaderItem } from '@/components/form/Uploader';
|
|
|
+import { back, backAndCallOnPageBack } from '@/components/utils/PageAction';
|
|
|
|
|
|
const { querys } = useLoadQuerys({
|
|
|
tag: '',
|
|
|
villageId: 0,
|
|
|
}, () => {
|
|
|
+
|
|
|
+ if (!(uni as any).shareToOfficialAccount) {
|
|
|
+ alert({
|
|
|
+ title: '提示',
|
|
|
+ content: '抱歉,微信目前不支持在电脑端编写贴图,您可以在手机版微信中编写贴图哦!',
|
|
|
+ }).then(() => {
|
|
|
+ back();
|
|
|
+ })
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
villageInfoForAI.load();
|
|
|
});
|
|
|
const authStore = useAuthStore();
|
|
|
@@ -215,7 +227,7 @@ function publish() {
|
|
|
uni.removeStorageSync('postDraft');
|
|
|
toast('发布成功');
|
|
|
setTimeout(() => {
|
|
|
- uni.navigateBack();
|
|
|
+ backAndCallOnPageBack('refreshOfficialAccount', { })
|
|
|
}, 1000);
|
|
|
},
|
|
|
fail: (error: any) => {
|