import * as xxx from ‘xxx ’ 与import xxx from ‘xxx’区别

import * as the name from 'path':

There is only the path (export const setToken1 = ({commit}, val) => {commit ( "name" {......})}; export const setToken2 = ({commit}, val) => {commit ( "name" {......})})

Several export content will be combined into a derived object is returned to the XXX;
Import from XXX 'XXX' :( export default mutations) export only the default object as an object

Guess you like

Origin blog.csdn.net/anwj1020/article/details/86504904