1. import { api as mapi } from '@/scripts/api';

    导入scripts/api.js中的api并用mapi重命名,使用的时候使用mapi