npm i fastchar-appjs
"dependencies": {
"fastchar-appjs": "^1.2.42", //具体版本以npm库更新为准
}
import {FastServer} from "fastchar-appjs";
FastServer.Croshe.get("接口地址", {
orderId: 1
}).then(result => {
if (result.isSuccess()) {
console.error(result.getData());
} else {
console.error(result.getMessage());
}
});
https://www.npmjs.com/package/fastchar-appjs
const FastVue = require("fastchar-appjs/src/cjs/FastVue");
const result = FastVue.System.getDefaultVueConfig(__dirname, {
projectTitle: "项目名称",
projectPagesDir: ["src/user_pages"],
projectOutDir: "dist",
autoCreateProjectIndexPage: false,
autoCreatePageConfigFile: true,
finalParams: {
mobile: false,
client: "vue",
userId: FastVue.System.isVueCliServerBuild() ? undefined : 3
},
globalConfig: {
mainUrl: "http://192.168.0.105:8888/test/"
},
injectJsFiles: ["src/js/fast-security.js", "src/js/iconfont.js"],
clientStrict: true
});
module.exports = result;