My name is Henry and I'm a Devops. I'm from China 🇨🇳, living in 杭州.
- email: [email protected]
Yearning next h5 for vue3
My name is Henry and I'm a Devops. I'm from China 🇨🇳, living in 杭州.
请问使用后端3.0.7,前端3.0.5能编译成功吗
我通过修改src/config/request.ts文件使用不同的后端api地址:
const request: AxiosInstance = axios.create({
timeout: 200000,
headers: {
'Content-Type': 'application/json'
},
baseURL: `https://api-yearning.XXXX.com/`,
})
首页地址是yearning.XXXX.com, 后端地址是api-yearning.XXXX.com
src/socket/index.ts
constructor(prefix: string, token: string) {
let baseURL = ""
import.meta.env.MODE === "dev" ? baseURL = "127.0.0.1:8000" : baseURL = document.location.host
document.location.host的值和baseURL的值不相等, 导致wss的地址拼接不是预料中的情况。
const fetchTableArch = async () => {
loadingTblBtn.value = true;
const {data} = await queryTableArch(orderItems);
//lgx fix
if (data.payload == null) {
loadingTblBtn.value = false;
return
}
archData.value = data.payload.rows;
indexData.value = data.payload.idx;
activeKey.value = 2;
message.success(t('order.apply.table.info') + t('common.success'));
loadingTblBtn.value = false;
};
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.