|
@@ -53,7 +53,7 @@
|
|
|
import { ref, defineProps, defineEmits, onMounted } from "vue";
|
|
|
import axios from 'axios';
|
|
|
import { message } from "ant-design-vue";
|
|
|
-import { convertUrl, getAllPostEditorAppData } from "@/http/toolBoxApi";
|
|
|
+import { convertUrl, getAllPostEditorAppData, checkInputUrlInBlacklist } from "@/http/toolBoxApi";
|
|
|
import { setChromeStorage, getChromeStorage } from "@/uilts/chromeExtension"
|
|
|
import { checkURL, debounce } from "@/uilts/help"
|
|
|
|
|
@@ -98,6 +98,23 @@ const searchHandler = async (_params) => {
|
|
|
message.error('Page loading failed');
|
|
|
}, 1000 * 15);
|
|
|
|
|
|
+ if(!_params) {
|
|
|
+ let blackListRes = await checkInputUrlInBlacklist({
|
|
|
+ params: {
|
|
|
+ url: siteUrl.value
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ if(blackListRes.code == 0) {
|
|
|
+ if(blackListRes.data) {
|
|
|
+ loadingHide();
|
|
|
+ clearTimeout(timer);
|
|
|
+ message.info('This site is not supported');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
let siteRes = await axios.get(siteUrl.value);
|
|
|
|
|
|
let currentApp = {
|