Commit ff0ef3cb authored by wuhao's avatar wuhao 🎯

ader

parent 6f35aa83
export default {
dev: {
REACT_APP_URL: "http://192.168.40.145:8044/vstp", // http://tasks-dev.nangaoyun.com
REACT_APP_URL: "/vstp", // http://tasks-dev.nangaoyun.com
DEFAULT_HEAD_IMG: "./assets/images/avatars/avatar_21.jpg",
DEFAULT_404_IMG: "./assets/illustrations/illustration_404.svg",
DOWNLOAD_URL: "http://192.168.40.2",
......
......@@ -22,7 +22,7 @@
export default {
dev: {
"/vstp/": {
target: "http://192.168.40.228:8022",
target: "http://192.168.40.146:8022",
changeOrigin: true,
pathRewrite: { "^/vstp": "" },
},
......
......@@ -121,14 +121,15 @@ function Dolessons() {
okText: "确认",
cancelText: "取消",
onConfirm: async () => {
await runAsync({
let res = await runAsync({
url: "/studentExperiment/startExperiment",
params: { id: row?.id },
});
// add Jump
const token = localStorage.getItem("TOKENES");
window.open(`ctp://${token}:${row?.id}`);
if (res.code === "0000") {
const token = localStorage.getItem("TOKENES");
window.open(`ctp://${token}:${row?.id}`);
}
},
}}
btn={{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment