chrom: 配置跨域

This commit is contained in:
橙子
2024-06-09 00:39:57 +08:00
parent f267d820bf
commit 40a89c9374
3 changed files with 14 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
//应用启动
"App": {
"SelfUrl": "http://*:19002",
"CorsOrigins": "http://localhost:19002;http://localhost:18002"
"CorsOrigins": "http://localhost:18001;https://ccnetcore.com"
},
"ToolOptions": {
"TempDirPath": "wwwroot/temp",

View File

@@ -0,0 +1,7 @@
import request from "@/config/axios/service";
export function GetResult() {
return request({
url: `http://ccnetcore.com:19002/api/app/nue-get-info/info`,
method: "get",
});
}

View File

@@ -4,6 +4,7 @@ import CodeBox from "./components/CodeBox.vue"
import LableInput from "./components/LableInput.vue"
import SlectBox from "./components/SlectBox.vue"
import LableCheck from "./components/LableCheck.vue"
import {GetResult} from '@/apis/nugetApi'
const isFixed = ref(false);
@@ -16,6 +17,8 @@ const form = reactive({
const installText = "> dotnet tool install -g Yi.Abp.Tool";
const cloneText = "> yi-abp clone ";
const onDbTypeSelected = (data) => {
form.dbType = data.value;
}
@@ -50,8 +53,9 @@ if(dbType=="sqlite")
return `> yi-abp new ${form.name} -t module ${dbType!=''?'-dbms '+form.dbType:''} ${form.isCsf==true?'-csf':''}`
});
onMounted(() => {
onMounted(async() => {
const {data}= await GetResult();
console.log(data,"data");
// 监听页面滚动事件
window.addEventListener("scroll", scrolling, true);