Commit ea0ef603 authored by tianfen's avatar tianfen

style: fix styles

parent 84294082
Pipeline #21497 skipped with stages
const rm = require('rimraf'); const rm = require('rimraf');
const path = require('path'); const path = require('path');
const webpack = require('webpack'); const webpack = require('webpack');
const chalk = require('chalk'); const chalk = require('chalk');
const ora = require('ora') const ora = require('ora');
const webpackConfig = require('./webpack.prod.babel') const webpackConfig = require('./webpack.prod.babel');
const spinner = ora('building for production...'); const spinner = ora('building for production...');
// const Diff = require('diff'); // const Diff = require('diff');
/* eslint-disable */ /* eslint-disable */
......
...@@ -8,7 +8,9 @@ module.exports = options => ({ ...@@ -8,7 +8,9 @@ module.exports = options => ({
entry: options.entry, entry: options.entry,
output: Object.assign( output: Object.assign(
{ {
path: process.env.npm_config_releasepath ? path.resolve(process.env.npm_config_releasepath, 'civmanage'): path.resolve(process.cwd(), 'civmanage'), path: process.env.npm_config_releasepath
? path.resolve(process.env.npm_config_releasepath, 'civmanage')
: path.resolve(process.cwd(), 'civmanage'),
publicPath: process.env.PUBLIC_PATH || '/civmanage/', publicPath: process.env.PUBLIC_PATH || '/civmanage/',
}, },
options.output, options.output,
......
...@@ -17,7 +17,7 @@ module.exports = require('./webpack.base.babel')({ ...@@ -17,7 +17,7 @@ module.exports = require('./webpack.base.babel')({
], ],
// Utilize long-term caching by adding content hashes (not compilation hashes) to compiled assets // Utilize long-term caching by adding content hashes (not compilation hashes) to compiled assets
//[chunkhash:8] [chunkhash:8] // [chunkhash:8] [chunkhash:8]
output: { output: {
filename: 'static/[name].[chunkhash:8].js', filename: 'static/[name].[chunkhash:8].js',
chunkFilename: 'static/[name].[chunkhash:8].chunk.js', chunkFilename: 'static/[name].[chunkhash:8].chunk.js',
......
import { get, post, CITY_SERVICE,PUBLISH_SERVICE } from '@/services/index'; import { get, post, CITY_SERVICE, PUBLISH_SERVICE } from '@/services/index';
/* /*
** params ** params
...@@ -31,11 +31,10 @@ export const chooseUserToStation = (params, options) => ...@@ -31,11 +31,10 @@ export const chooseUserToStation = (params, options) =>
export const getUserByStation = params => export const getUserByStation = params =>
get(`${CITY_SERVICE}/OMS.svc/P_GetUserByStation`, params); get(`${CITY_SERVICE}/OMS.svc/P_GetUserByStation`, params);
//获取站点一级列表 // 获取站点一级列表
export const getAllGroup = params => export const getAllGroup = params =>
get(`${PUBLISH_SERVICE}/UserCenter/GetAllGroup`, params); get(`${PUBLISH_SERVICE}/UserCenter/GetAllGroup`, params);
//获取站点二级列表 // 获取站点二级列表
export const getStationUserList = params => export const getStationUserList = params =>
get(`${PUBLISH_SERVICE}/UserCenter/GetStationUserList`, params); get(`${PUBLISH_SERVICE}/UserCenter/GetStationUserList`, params);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment