large-model-component 1.0.4 → 1.0.6
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/package.json +1 -2
- package/packages/model/model.vue +2 -2
- package/src/api/user.js +1 -1
- package/src/main.js +0 -1
- package/src/utils/request.js +1 -6
- package/tests/unit/example.spec.js +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "large-model-component",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vue-cli-service serve",
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"registry": "https://registry.npmjs.org/"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"axios": "^1.8.2",
|
|
23
22
|
"core-js": "^3.8.3",
|
|
24
23
|
"element-ui": "^2.15.14",
|
|
25
24
|
"markdown-it": "12.3.2",
|
package/packages/model/model.vue
CHANGED
|
@@ -206,8 +206,8 @@ import {
|
|
|
206
206
|
quickAccess as getQuickAccessApi,
|
|
207
207
|
suggestive,
|
|
208
208
|
votePort
|
|
209
|
-
} from "
|
|
210
|
-
import ContentFold from "
|
|
209
|
+
} from "../../src/api/user";
|
|
210
|
+
import ContentFold from "../../src/components/contentFold";
|
|
211
211
|
|
|
212
212
|
const ALLOWED_EXTENSIONS = ['pdf', 'doc', 'docx', 'txt', 'pptx', 'ppt', 'xls', 'xlsx', 'jpg', 'jpeg', 'png', 'gif', 'webp'];
|
|
213
213
|
const MAX_FILE_SIZE = 10 * 1024 * 1024; // 10M
|
package/src/api/user.js
CHANGED
package/src/main.js
CHANGED
package/src/utils/request.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import { Message } from 'element-ui';
|
|
3
|
-
// import utils from '@/utils/utils';
|
|
4
3
|
|
|
5
4
|
const codeMsg = {
|
|
6
5
|
200: '请求成功',
|
|
@@ -22,11 +21,7 @@ const service = axios.create({
|
|
|
22
21
|
service.interceptors.request.use(
|
|
23
22
|
(config) => {
|
|
24
23
|
// config.headers.Authorization = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6Ijc4NjE0ZjIwLWQ4M2ItNDFhMy1hYTBjLWVjYjU5YTZiMTFmYSJ9.nkxUa_MB4G8NGdeQtpGFTdSnvuK1jUCO4dfKUMHi10VxgEjXU-BkyHG_-eEUOod1lPoBLvIWxDPtoX-P4l52mw';
|
|
25
|
-
config.headers =
|
|
26
|
-
...config.headers,
|
|
27
|
-
"Industrial-Access-Token": localStorage.getItem('Industrial-Access-Token'),
|
|
28
|
-
}
|
|
29
|
-
// console.log('config.headers==>',config.headers)
|
|
24
|
+
config.headers["Industrial-Access-Token"] = localStorage.getItem('Industrial-Access-Token') || '';
|
|
30
25
|
return config;
|
|
31
26
|
},
|
|
32
27
|
(error) => {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils'
|
|
2
|
-
import HelloWorld from '@/components/HelloWorld.vue'
|
|
3
|
-
|
|
4
|
-
describe('HelloWorld.vue', () => {
|
|
5
|
-
it('renders props.msg when passed', () => {
|
|
6
|
-
const msg = 'new message'
|
|
7
|
-
const wrapper = shallowMount(HelloWorld, {
|
|
8
|
-
propsData: { msg }
|
|
9
|
-
})
|
|
10
|
-
expect(wrapper.text()).toMatch(msg)
|
|
11
|
-
})
|
|
12
|
-
})
|