|
|
@@ -519,12 +519,9 @@ const GoEnter = (row: Teacher) => {
|
|
|
|
|
|
getTicket(params).then((res: any) => {
|
|
|
const ticket = res.data
|
|
|
- let url = `https://www.k12100.com/#/otherLogin?type=1&schoolId=${schoolId.value}&id=${row.userId}&ticket=${ticket}`
|
|
|
- if (import.meta.env.VITE_API_BASE_URL === 'https://admin.k12100.com/admin/') {
|
|
|
- url = `https://www.k12100.com/#/otherLogin?type=1&schoolId=${schoolId.value}&id=${row.userId}&ticket=${ticket}`
|
|
|
- } else {
|
|
|
- url = `https://index.k12100.net/#/otherLogin?type=1&schoolId=${schoolId.value}&id=${row.userId}&ticket=${ticket}`
|
|
|
- }
|
|
|
+ const isProd = import.meta.env.VITE_API_BASE_URL === 'https://www.huijiaoyan.com/admin/'
|
|
|
+ const baseUrl = isProd ? 'https://www.k12100.com' : 'https://index.k12100.net'
|
|
|
+ const url = `${baseUrl}/#/otherLogin?type=1&schoolId=${schoolId.value}&id=${row.userId}&ticket=${ticket}`
|
|
|
window.open(url)
|
|
|
}).catch(() => {})
|
|
|
}
|