提交 dfcb20b8 编写于 作者: fxy060608's avatar fxy060608

fix(mp): behavior (question/131622)

上级 9baa8b85
......@@ -553,7 +553,7 @@ function initBehaviors(vueOptions, initBehavior) {
const behaviors = [];
if (isArray(vueBehaviors)) {
vueBehaviors.forEach((behavior) => {
behaviors.push(behavior.replace('uni://', `${__PLATFORM_PREFIX__}://`));
behaviors.push(behavior.replace('uni://', 'my://'));
if (behavior === 'uni://form-field') {
if (isArray(vueProps)) {
vueProps.push('name');
......
......@@ -736,7 +736,7 @@ function initBehaviors(vueOptions, initBehavior) {
const behaviors = [];
if (isArray(vueBehaviors)) {
vueBehaviors.forEach((behavior) => {
behaviors.push(behavior.replace('uni://', `${__PLATFORM_PREFIX__}://`));
behaviors.push(behavior.replace('uni://', 'swan://'));
if (behavior === 'uni://form-field') {
if (isArray(vueProps)) {
vueProps.push('name');
......
......@@ -100,7 +100,7 @@ export function initBehaviors(
const behaviors: string[] = []
if (isArray(vueBehaviors)) {
vueBehaviors.forEach((behavior) => {
behaviors.push(behavior.replace('uni://', `${__PLATFORM_PREFIX__}://`))
behaviors.push(behavior.replace('uni://', '__GLOBAL__://'))
if (behavior === 'uni://form-field') {
if (isArray(vueProps)) {
vueProps.push('name')
......
......@@ -731,7 +731,7 @@ function initBehaviors(vueOptions, initBehavior) {
const behaviors = [];
if (isArray(vueBehaviors)) {
vueBehaviors.forEach((behavior) => {
behaviors.push(behavior.replace('uni://', `${__PLATFORM_PREFIX__}://`));
behaviors.push(behavior.replace('uni://', 'ks://'));
if (behavior === 'uni://form-field') {
if (isArray(vueProps)) {
vueProps.push('name');
......
......@@ -704,7 +704,7 @@ function initBehaviors(vueOptions, initBehavior) {
const behaviors = [];
if (isArray(vueBehaviors)) {
vueBehaviors.forEach((behavior) => {
behaviors.push(behavior.replace('uni://', `${__PLATFORM_PREFIX__}://`));
behaviors.push(behavior.replace('uni://', 'tt://'));
if (behavior === 'uni://form-field') {
if (isArray(vueProps)) {
vueProps.push('name');
......
......@@ -693,7 +693,7 @@ function initBehaviors(vueOptions, initBehavior) {
const behaviors = [];
if (isArray(vueBehaviors)) {
vueBehaviors.forEach((behavior) => {
behaviors.push(behavior.replace('uni://', `${__PLATFORM_PREFIX__}://`));
behaviors.push(behavior.replace('uni://', 'qq://'));
if (behavior === 'uni://form-field') {
if (isArray(vueProps)) {
vueProps.push('name');
......
......@@ -704,7 +704,7 @@ function initBehaviors(vueOptions, initBehavior) {
const behaviors = [];
if (isArray(vueBehaviors)) {
vueBehaviors.forEach((behavior) => {
behaviors.push(behavior.replace('uni://', `${__PLATFORM_PREFIX__}://`));
behaviors.push(behavior.replace('uni://', 'tt://'));
if (behavior === 'uni://form-field') {
if (isArray(vueProps)) {
vueProps.push('name');
......
......@@ -565,7 +565,7 @@ function initBehaviors(vueOptions, initBehavior) {
const behaviors = [];
if (isArray(vueBehaviors)) {
vueBehaviors.forEach((behavior) => {
behaviors.push(behavior.replace('uni://', `${__PLATFORM_PREFIX__}://`));
behaviors.push(behavior.replace('uni://', 'wx://'));
if (behavior === 'uni://form-field') {
if (isArray(vueProps)) {
vueProps.push('name');
......
......@@ -682,7 +682,7 @@ function initBehaviors(vueOptions, initBehavior) {
const behaviors = [];
if (isArray(vueBehaviors)) {
vueBehaviors.forEach((behavior) => {
behaviors.push(behavior.replace('uni://', `${__PLATFORM_PREFIX__}://`));
behaviors.push(behavior.replace('uni://', 'qa://'));
if (behavior === 'uni://form-field') {
if (isArray(vueProps)) {
vueProps.push('name');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册