message-verify 0.0.48-beta.0 → 0.0.49-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/resource.js CHANGED
@@ -2,7 +2,7 @@ import { assign, customPost } from '@yqg/resource';
2
2
  // import { assign, axios as instance, customPost } from '@yqg/resource';
3
3
  // import { message } from './compoments/index.js';
4
4
  // import { YQG_SUCCESS } from './utils/status.js';
5
- const urlPrefix = '/admin/';
5
+ const urlPrefix = '/messageVerify/admin/';
6
6
  // axios.defaults.headers.common['Access-Control-Allow-Origin'] = '*';
7
7
  // instance.interceptors.response.use(
8
8
  // (res) => {
@@ -45,6 +45,6 @@ const api = {
45
45
  urlPrefix,
46
46
  getCaptchaKey: customPost('captcha/key'),
47
47
  reSendCode: customPost('sms/send'),
48
- getCaptchaImgUrl: (captchaKey) => { return `/admin/captcha/image/${captchaKey}`; },
48
+ getCaptchaImgUrl: (captchaKey) => { return `captcha/image/${captchaKey}`; },
49
49
  };
50
50
  export default assign(api);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "message-verify",
3
- "version": "0.0.48-beta.0",
3
+ "version": "0.0.49-beta.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {
package/src/resource.ts CHANGED
@@ -3,7 +3,7 @@ import { assign, customPost } from '@yqg/resource';
3
3
  // import { message } from './compoments/index.js';
4
4
  // import { YQG_SUCCESS } from './utils/status.js';
5
5
 
6
- const urlPrefix = '/admin/';
6
+ const urlPrefix = '/messageVerify/admin/';
7
7
  // axios.defaults.headers.common['Access-Control-Allow-Origin'] = '*';
8
8
  // instance.interceptors.response.use(
9
9
  // (res) => {
@@ -51,7 +51,7 @@ const api = {
51
51
 
52
52
  getCaptchaKey: customPost('captcha/key'),
53
53
  reSendCode: customPost('sms/send'),
54
- getCaptchaImgUrl: (captchaKey: string) => {return `/admin/captcha/image/${captchaKey}`},
54
+ getCaptchaImgUrl: (captchaKey: string) => {return `captcha/image/${captchaKey}`},
55
55
  };
56
56
 
57
57
  export default assign(api);