diff --git a/App.vue b/App.vue index b6f4564..32f7d93 100644 --- a/App.vue +++ b/App.vue @@ -1,351 +1,353 @@ diff --git a/api/file.js b/api/file.js deleted file mode 100644 index 3f05a27..0000000 --- a/api/file.js +++ /dev/null @@ -1,38 +0,0 @@ -const env = __VITE_ENV__; - -/** - * 上传文件(图片等) - * 与 zdh-hlw-patient 的 /file/upload 接口保持一致 - */ -export function uploadFile(tempFilePath, businessType, accessLevel = 'public') { - return new Promise((resolve) => { - uni.uploadFile({ - url: `${env.MP_API_BASE_URL}/file/upload`, - filePath: tempFilePath, - name: 'file', - formData: { - businessType, - accessLevel, - }, - success: (res) => { - try { - const data = typeof res.data === 'string' ? JSON.parse(res.data) : res.data; - if (data && data.success) { - resolve(data.data); - } else { - resolve(); - } - } catch (e) { - console.log('upload file parse error:', e); - resolve(); - } - }, - fail: (err) => { - console.log('upload file error:', err); - resolve(); - }, - }); - }); -} - - diff --git a/pages/login/login.vue b/pages/login/login.vue index dada67b..ee59991 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -112,7 +112,6 @@ onLoad((opts) => { console.log("redirectUrl", redirectUrl.value); return; } - // 支持 redirect 参数(来自 useGuard)或 redirectUrl 参数 if (opts.redirect) { redirectUrl.value = decodeURIComponent(opts.redirect); } else { diff --git a/pages/work/department-select.vue b/pages/work/department-select.vue index 1387aa0..9f4e480 100644 --- a/pages/work/department-select.vue +++ b/pages/work/department-select.vue @@ -1,45 +1,49 @@ +