cosey 0.2.0 → 0.2.2
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.
|
@@ -3,7 +3,7 @@ import { defaultFormItemProps, formItemExposeKeys } from '../form/form-item.js';
|
|
|
3
3
|
const defaultFormListProps = {
|
|
4
4
|
...defaultFormItemProps,
|
|
5
5
|
modelValue: () => [],
|
|
6
|
-
addText: "co.
|
|
6
|
+
addText: "co.common.add"
|
|
7
7
|
};
|
|
8
8
|
const formListExposeKeys = [...formItemExposeKeys, "add", "remove", "move"];
|
|
9
9
|
|
package/config/http.d.ts
CHANGED
package/config/http.js
CHANGED
package/hooks/useLocale.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, inject, computed, unref, isRef } from 'vue';
|
|
2
2
|
import { get } from 'lodash-es';
|
|
3
|
-
import stdin_default from '../locale/lang/
|
|
3
|
+
import stdin_default from '../locale/lang/zh-cn.js';
|
|
4
4
|
|
|
5
5
|
const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
|
|
6
6
|
const translate = (path, option, locale) => get(locale, path, path).replace(
|
package/package.json
CHANGED
package/request/useRequest.js
CHANGED
|
@@ -45,7 +45,7 @@ function useRequest(config = {}) {
|
|
|
45
45
|
Object.assign(config2, httpConfig.headers);
|
|
46
46
|
const token = persist.get(TOKEN_NAME);
|
|
47
47
|
if (token) {
|
|
48
|
-
config2.headers.
|
|
48
|
+
config2.headers[httpConfig.authHeaderKey] = httpConfig.authScheme ? `${httpConfig.authScheme} ${token}` : token;
|
|
49
49
|
}
|
|
50
50
|
return config2;
|
|
51
51
|
},
|