large-model-component 1.0.5 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "large-model-component",
3
- "version": "1.0.5",
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/src/api/user.js CHANGED
@@ -1,4 +1,4 @@
1
- import request from '@/utils/request';
1
+ import request from '../utils/request';
2
2
  // 登录:获取token
3
3
  export function loginCas(data) {
4
4
  return request({
package/src/main.js CHANGED
@@ -3,7 +3,6 @@ import App from './App.vue'
3
3
  import ElementUI from "element-ui";
4
4
  import "element-ui/lib/theme-chalk/index.css";
5
5
  Vue.config.productionTip = false
6
- import '@/assets/css/base.css'
7
6
  Vue.use(ElementUI);
8
7
  new Vue({
9
8
  render: h => h(App),
@@ -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
- })