chrom: 配置跨域
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
//应用启动
|
//应用启动
|
||||||
"App": {
|
"App": {
|
||||||
"SelfUrl": "http://*:19002",
|
"SelfUrl": "http://*:19002",
|
||||||
"CorsOrigins": "http://localhost:19002;http://localhost:18002"
|
"CorsOrigins": "http://localhost:18001;https://ccnetcore.com"
|
||||||
},
|
},
|
||||||
"ToolOptions": {
|
"ToolOptions": {
|
||||||
"TempDirPath": "wwwroot/temp",
|
"TempDirPath": "wwwroot/temp",
|
||||||
|
|||||||
7
Yi.Bbs.Vue3/src/apis/nugetApi.js
Normal file
7
Yi.Bbs.Vue3/src/apis/nugetApi.js
Normal 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",
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -4,6 +4,7 @@ import CodeBox from "./components/CodeBox.vue"
|
|||||||
import LableInput from "./components/LableInput.vue"
|
import LableInput from "./components/LableInput.vue"
|
||||||
import SlectBox from "./components/SlectBox.vue"
|
import SlectBox from "./components/SlectBox.vue"
|
||||||
import LableCheck from "./components/LableCheck.vue"
|
import LableCheck from "./components/LableCheck.vue"
|
||||||
|
import {GetResult} from '@/apis/nugetApi'
|
||||||
|
|
||||||
|
|
||||||
const isFixed = ref(false);
|
const isFixed = ref(false);
|
||||||
@@ -16,6 +17,8 @@ const form = reactive({
|
|||||||
const installText = "> dotnet tool install -g Yi.Abp.Tool";
|
const installText = "> dotnet tool install -g Yi.Abp.Tool";
|
||||||
const cloneText = "> yi-abp clone ";
|
const cloneText = "> yi-abp clone ";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const onDbTypeSelected = (data) => {
|
const onDbTypeSelected = (data) => {
|
||||||
form.dbType = data.value;
|
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':''}`
|
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);
|
window.addEventListener("scroll", scrolling, true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user